You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Bill Manuel <bi...@gmail.com> on 2006/07/19 16:19:35 UTC
Eclipse and Maven
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?
Thanks,
Bill Manuel
Re: Eclipse and Maven
Posted by Jon SlinnHawkins <j....@elsevier.com>.
does setting the dependancy scope to provided not work when running from
MyEclipse...
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.3</version>
<scope>provided</scope>
</dependency>
</dependencies>
"Bill Manuel" <bi...@gmail.com> wrote in message
news:bd171aba0607190719v5f1fe820sd98517f63791906@mail.gmail.com...
> 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?
>
> Thanks,
>
> Bill Manuel
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Eclipse and Maven
Posted by Adam Hardy <ad...@cyberspaceroad.com>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Eclipse and Maven
Posted by Laurent GRANIE <la...@gmail.com>.
> 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.
Laurent.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org