Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

exporting complete WAR bundle after build in M2/eclipse wtp project

 
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys : Im using eclipse 3.5 with the M2 plug in, and I have the Maven build preference set to WAR.

Everything works great, and Im ready to deploy my web app to a production server, and Im realizing that its
probably a good time to learn HOW exactly the M2 plugin is interacting with the WTP portion of Eclipse J2EE project, version 3.5 .

so.... drumroll......... My question is :

How does Eclipse WTP leverage the maven M2 plugin ? That is, I know that SOMEHOW, eclipse is managing to compile my
class files, and that those files are able to access maven jars in my .m2 directory, and that ultimately, a functional web project
is being expoerted to tomcat.....

But is Maven REALLY exporting a WAR file and doing the build for me ? Or does the M2 maven plugin simply "help" eclipse to manage dependencies ?

I know these are complex questions, but any *hints* as to how a M2 plugin and WTP J2EE projects are normally related would be much appreciated !!!

The part that is particularly confusing is that M2 has a package as "war" option that is enabled..... I dont see why this is necessary if all maven is doing is managing dependencies....
Which leads me to assume that, maybe ---gasp---- maven , not eclipse, is building my project by some magic in the M2 plugin !?

 
The world's cheapest jedi mind trick: "Aw c'mon, why not read this tiny ad?"
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic