Laurent GRANIE on 19/07/06 15:37, wrote:
Ok, I have maven2 working. I'm trying to use MyEclipse to deploy to
Tomcat
and the MyEclipse deployer is copying the servlet-api jar file to my
server. This is a problem because that file conflicts with the
server. Is
there anyway to keep that on the dependencies in my POM, but not have
it on
my classpath in Eclipse after running the eclipse:eclipse task?
The eclipse:eclipse command adds "Variable" Library entries to the
"Java Build Path" of your project.
You must define the M2_REPO eclipse variable to your Maven 2
repository (by default ~/.m2/repository).
Just select the first entry I edit it and click on the "Variable..."
button.
The m2eclipse plugin for Eclipse handles the dependencies better, making this
M2_REPO variable redundant.
It does have its issues as well of course but I find it more useful for webapp
development, and I use the war:inplace goal to set up the deployment 'in
place', to which I point a tomcat context. No copying files after each change,
although I do have to stop and restart tomcat after changing configuration
files.
I haven't managed to the WTP / WST working with it yet though.
Just my 2 cents.
Adam
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]