So, the problem seems to be in the WTP part which do not take care about M2 (the plugin neither). It's the first time I used M2 and this repository system was a good idea, but if to use it I need another development tool, it's very bad. Thanks for answering, but I don't want to change again the way I develop especially if I don't have a very good reason to use M2 such as sharing libraries between projects. Yes, my librairies are used only in this project and I don't see the need of M2 in this context.
Hope the next WTP will have also a DevLoader... 2007/11/20, Beelen, M. - SPLXL <[EMAIL PROTECTED]>: > > Michael, > > For running (and debugging) my eclipse projects in tomcat I am using the > Sysdeo tomcat plugin. (http://www.eclipsetotale.com/tomcatPlugin.html) > > It offers the ability to start and stop tomcat from Eclipse and more > importantly contains a additional DevLoader, which you can add to your > tomcat-configuration, which ensure that the libraries referenced in your > project configuration are loaded in the webContext within tomcat. > If your project refers to the libs in your M2-repo, then those libs will > be loaded. > > It is really using WTP, but it works like a charm for me. > (Note: You do have to select which libs you want to include in the > classpath of the webContext, so you can ignore those dependancies on the > classpath for the scope provided or or test) > > With kind regards, > Marco Beelen > > > > > > -----Original Message----- > From: Michael Bernagou [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 20, 2007 9:49 AM > To: [email protected] > Subject: [M2]Eclipse WTP, dependency, deployement, libraries > > 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 > ********************************************************************** > For information, services and offers, please visit our web site: > http://www.klm.com. This e-mail and any attachment may contain > confidential and privileged material intended for the addressee > only. If you are not the addressee, you are notified that no part > of the e-mail or any attachment may be disclosed, copied or > distributed, and that any other action related to this e-mail or > attachment is strictly prohibited, and may be unlawful. If you have > received this e-mail by error, please notify the sender immediately > by return e-mail, and delete this message. > > Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries > and/or its employees shall not be liable for the incorrect or > incomplete transmission of this e-mail or any attachments, nor > responsible for any delay in receipt. > Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal > Dutch Airlines) is registered in Amstelveen, The Netherlands, with > registered number 33014286 > ********************************************************************** > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Michael Bernagou Java Developper
