You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Alexandre Gomes <al...@gmail.com> on 2007/05/26 04:26:21 UTC
Overriding the plugin depencies
Hi,
I'm using a plugin [1] that depends of some library [2].
My question is if it's possible to change the plugin dependency without
having to update the local repository. Maybe, there is some pom tag tag I
could use to change the plugin dependecy. Actually, I'd like to change the
antenna version to 0.9.15 and I didn't like to make it locally, because
other developers would not get the changes.
thanks
[1]
<groupId>com.pyx4me</groupId>
<artifactId>j2me-maven-plugin</artifactId>
<version>2.0.1</version>
[2]
<dependency>
<groupId>de.pleumann</groupId>
<artifactId>antenna</artifactId>
<version>0.9.14</version>
</dependency>
Alexandre
Re: Overriding the plugin depencies
Posted by Brad Szabo <bs...@unicon.net>.
Hey Wendy,
Thanks for clarifying that... I was thinking about using exclusions to
enable the override :) The issue you noted is more appropriate for this
thread.
After digging up some old notes on this issue however, I think you are
justified in your confused feeling that you have been able to override
plugin dependencies successfully, because you probably have. In my post
about a related issue on the list back in March
http://www.nabble.com/-Maven2--xmlbeans-maven-plugin-Issue----StAX-transitive-dependencies-tf3359711.html#a9345543
I noted that I was able to get the override to work if I actually added
a few more arbitrary dependencies to my project. Totally weird.
-Brad
On Sat, 2007-05-26 at 08:02 -0700, Wendy Smoak wrote:
> On 5/26/07, Brad Szabo <bs...@unicon.net> wrote:
> >
> > Plugin dependencies cannot be overridden at the present time. There is
> > an issue in JIRA http://jira.codehaus.org/browse/MNG-2163 (which is
> > duplicated by a couple others).
>
> That one is about exclusions. This one is about overrideing dependencies:
>
> http://jira.codehaus.org/browse/MNG-2972
>
> Strange, because I really thought I had done it before and it worked.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Overriding the plugin depencies
Posted by Wendy Smoak <ws...@gmail.com>.
On 5/26/07, Brad Szabo <bs...@unicon.net> wrote:
>
> Plugin dependencies cannot be overridden at the present time. There is
> an issue in JIRA http://jira.codehaus.org/browse/MNG-2163 (which is
> duplicated by a couple others).
That one is about exclusions. This one is about overrideing dependencies:
http://jira.codehaus.org/browse/MNG-2972
Strange, because I really thought I had done it before and it worked.
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Overriding the plugin depencies
Posted by Brad Szabo <bs...@unicon.net>.
Plugin dependencies cannot be overridden at the present time. There is
an issue in JIRA http://jira.codehaus.org/browse/MNG-2163 (which is
duplicated by a couple others).
Currently, I think the best way to work around this for a group of
developers is to deploy the plugin with a modified pom.xml to a shared
remote repository. Have your project depend on that version, instead of
just modifying the plugin POM in your local repository.
-Brad
On Sat, 2007-05-26 at 09:12 -0300, Alexandre Gomes wrote:
> Hi,
>
> I tried, but it seems not to work. As Johan said, Maven is still getting the
> old dep version. Why? The dep resolution is a mystery for me as well :-)
>
> thanks
> Alexandre
>
>
> On 5/26/07, Wendy Smoak <ws...@gmail.com> wrote:
> >
> > On 5/25/07, Alexandre Gomes <al...@gmail.com> wrote:
> >
> > > I'm using a plugin [1] that depends of some library [2].
> > >
> > > My question is if it's possible to change the plugin dependency without
> > > having to update the local repository. Maybe, there is some pom tag tag
> > I
> > > could use to change the plugin dependecy. Actually, I'd like to change
> > the
> > > antenna version to 0.9.15 and I didn't like to make it locally, because
> > > other developers would not get the changes.
> >
> > Try <plugin><dependencies><dependency> as Johan suggests.
> >
> > http://maven.apache.org/ref/2.0.6/maven-model/maven.html
> >
> > --
> > Wendy
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Overriding the plugin depencies
Posted by Alexandre Gomes <al...@gmail.com>.
Hi,
I tried, but it seems not to work. As Johan said, Maven is still getting the
old dep version. Why? The dep resolution is a mystery for me as well :-)
thanks
Alexandre
On 5/26/07, Wendy Smoak <ws...@gmail.com> wrote:
>
> On 5/25/07, Alexandre Gomes <al...@gmail.com> wrote:
>
> > I'm using a plugin [1] that depends of some library [2].
> >
> > My question is if it's possible to change the plugin dependency without
> > having to update the local repository. Maybe, there is some pom tag tag
> I
> > could use to change the plugin dependecy. Actually, I'd like to change
> the
> > antenna version to 0.9.15 and I didn't like to make it locally, because
> > other developers would not get the changes.
>
> Try <plugin><dependencies><dependency> as Johan suggests.
>
> http://maven.apache.org/ref/2.0.6/maven-model/maven.html
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Overriding the plugin depencies
Posted by Wendy Smoak <ws...@gmail.com>.
On 5/25/07, Alexandre Gomes <al...@gmail.com> wrote:
> I'm using a plugin [1] that depends of some library [2].
>
> My question is if it's possible to change the plugin dependency without
> having to update the local repository. Maybe, there is some pom tag tag I
> could use to change the plugin dependecy. Actually, I'd like to change the
> antenna version to 0.9.15 and I didn't like to make it locally, because
> other developers would not get the changes.
Try <plugin><dependencies><dependency> as Johan suggests.
http://maven.apache.org/ref/2.0.6/maven-model/maven.html
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Overriding the plugin depencies
Posted by Johan Lindquist <jo...@kawoo.co.uk>.
Hi Alexandre,
You should be able to specify a plugin's dependancies within the plugin
definition in your pom (build/plugins/plugin). I am not fully sure, but
this may also be possible using a profile, which would allow you to not
make this visibile to those who *dont* activate the profile in question.
Be aware though that maven dependancy resolution *may* resolve the
plugin's dependancy to still be the old version. How the dep.
resolution works is a little bit of a mystery to me still, but it is
still worth trying.
Cheers,
Johan
Alexandre Gomes wrote:
> Hi,
>
> I'm using a plugin [1] that depends of some library [2].
>
> My question is if it's possible to change the plugin dependency without
> having to update the local repository. Maybe, there is some pom tag tag I
> could use to change the plugin dependecy. Actually, I'd like to change the
> antenna version to 0.9.15 and I didn't like to make it locally, because
> other developers would not get the changes.
>
> thanks
>
> [1]
> <groupId>com.pyx4me</groupId>
> <artifactId>j2me-maven-plugin</artifactId>
> <version>2.0.1</version>
>
> [2]
> <dependency>
> <groupId>de.pleumann</groupId>
> <artifactId>antenna</artifactId>
> <version>0.9.14</version>
> </dependency>
>
>
> Alexandre
>
--
you too?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org