> You will have to regenerate your eclipse settings each time that you change > your pom (adding/removing a dependency for example). > After that you can ** import ** your project in eclipse and you'll use the > standard build of eclipse (Ctrl + B) to build your application.
I think you just need to import the project once, and refresh it later after you regenerate your eclipse settings. Jeffrey Ai Arnaud HERITIER wrote: > > ok, sorry, I didn't see that you were new to M2. > > You have actually several choices to work with maven 2 and eclipse. > > The first one is to use a plugin in eclipse to launch maven 2 to build > your > application. > There are 2 plugins actually for eclipse : > - http://code.google.com/p/q4e/ which we hope will be integrated in > eclipse > in some monthes. When i tested it this plugin worked only with maven > 2.1.x. > It should be transparent in most cases if you are using 2.0.x, but it's > not > sure > - http://m2eclipse.codehaus.org/ > Those plugins will give you some additional features in eclipse: For > example > they'll help you to write your pom, add dependencies... > The problem with those plugins, is that they aren't supporting WTP if you > are developing a web application :-( > > The other choice, is to use the plugin in maven to setup your project for > eclipse > http://maven.apache.org/plugins/maven-eclipse-plugin/ > This plugin is used from maven in command line. It setup your eclipse > settings (build path, WTP support, ...). > You will have to regenerate your eclipse settings each time that you > change > your pom (adding/removing a dependency for example). > After that you can import your project in eclipse and you'll use the > standard build of eclipse (Ctrl + B) to build your application. You'll > also > be able to deploy your webapp on an application server using WTP > > Hope, this helps > > Arnaud > > > On Nov 20, 2007 2:51 PM, Michael Bernagou <[EMAIL PROTECTED]> wrote: > >> Hum, I don't know how to do that. >> Ok I can create a bat file to launch the command but is it to do only >> once? >> >> 2007/11/20, Arnaud HERITIER <[EMAIL PROTECTED]>: >> > >> > Did you activate the WTP support in the eclipse plugin for maven 2 ? >> > mvn eclipse:eclipse -Dwtpversion=1.5 >> > >> > It's working fine generally.... >> > >> > TEll us if you have any problem, we'll try to solve them >> > >> > Arnaud >> > >> > On Nov 20, 2007 9:49 AM, Michael Bernagou <[EMAIL PROTECTED]> >> wrote: >> > >> > > Hi, >> > > >> > > I'm new to M2 and I use Eclipse 3.2 WTP, Maven 2.0.7 and the latest >> > maven >> > > plugin for eclipse. I use the server integration in Eclipse to test >> my >> > > webapp and I set the dependency in my pom.xml. For example, I develop >> a >> > > Tapestry webapp so I added the tapestry-core-5.0.6 dependency in the >> > > pom.xml >> > > . >> > > >> > > The build is done normally but when I start the server, the libraries >> > > defined in the pom.xml are not copyed in the Tomcat instance managed >> by >> > > Eclipse WTP. >> > > I tried all the different scope and none of them deploy the libs. I >> > tried >> > > also to specify in Eclipse the Maven dependency should be Export >> > > (Project/Build Path/Order Export/check the boxes). >> > > >> > > For the scope "system" I tried to specifyed the absolute path where I >> > > would >> > > like to have my libraries (WEB-INF/lib) but it is finally not the >> goal >> > of >> > > this scope since it is just to refer a system library needed. >> > > >> > > A solution is to copy the lib I need in my webaap/WEB-INF/lib but >> then >> > M2 >> > > would be useless in this case. >> > > So, what did I miss? >> > > >> > > Thanks >> > > >> > > >> > > -- >> > > Michael Bernagou >> > > Java Developper >> > > >> > >> > >> > >> > -- >> > .......................................................... >> > Arnaud HERITIER >> > .......................................................... >> > OCTO Technology - aheritier AT octo DOT com >> > www.octo.com | blog.octo.com >> > .......................................................... >> > ASF - aheritier AT apache DOT org >> > www.apache.org | maven.apache.org >> > ........................................................... >> > >> >> >> >> -- >> Michael Bernagou >> Java Developper >> > > > > -- > .......................................................... > Arnaud HERITIER > .......................................................... > OCTO Technology - aheritier AT octo DOT com > www.octo.com | blog.octo.com > .......................................................... > ASF - aheritier AT apache DOT org > www.apache.org | maven.apache.org > ........................................................... > > -- View this message in context: http://www.nabble.com/-M2-Eclipse-WTP%2C-dependency%2C-deployement%2C-libraries-tf4842004s177.html#a13882523 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]