You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jochen Wiedmann <jo...@gmail.com> on 2007/01/31 21:36:29 UTC

Dynamic dependencies

Hi,

I have a plugin (maven-jaxme-plugin), which currently has a static
dependency on jaxme-0.5.2.jar. From time to time I add a bugfix to the
dependency, which I would like to use in the plugin. However, it isn't
very manageable to update the plugin anytime I update the dependency.
So I am thinking whether it is possible to make jaxme a dynamic
dependency. For example, I might check a special configuration
parameter "version". If that parameter is present, then I'd use the
given version, otherwise I'd use the preconfigured 0.5.2. Does someone
have an example how this can be done?

Thanks,

Jochen

-- 
How fast can a year go? As fast as your childs first year.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Dynamic dependencies

Posted by Niels Gylling <ng...@it-practice.dk>.
If the plugin dependency changes frequently, you might consider naming 
the version xx-SNAPSHOT and have a suitable snapshot update policy in 
your settings.xml

/Niels

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Dynamic dependencies

Posted by Jochen Wiedmann <jo...@gmail.com>.
On 2/1/07, Tom Huybrechts <to...@gmail.com> wrote:

> you can just add a <dependency/> element to the plugin's configuration
> to override the original dependency

Is it really that simple? That means, I won't need to change the plugin at all?

Thanks,

Jochen


-- 
How fast can a year go? As fast as your childs first year.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Dynamic dependencies

Posted by Tom Huybrechts <to...@gmail.com>.
you can just add a <dependency/> element to the plugin's configuration
to override the original dependency

On 1/31/07, Jochen Wiedmann <jo...@gmail.com> wrote:
> Hi,
>
> I have a plugin (maven-jaxme-plugin), which currently has a static
> dependency on jaxme-0.5.2.jar. From time to time I add a bugfix to the
> dependency, which I would like to use in the plugin. However, it isn't
> very manageable to update the plugin anytime I update the dependency.
> So I am thinking whether it is possible to make jaxme a dynamic
> dependency. For example, I might check a special configuration
> parameter "version". If that parameter is present, then I'd use the
> given version, otherwise I'd use the preconfigured 0.5.2. Does someone
> have an example how this can be done?
>
> Thanks,
>
> Jochen
>
> --
> How fast can a year go? As fast as your childs first year.
>
> ---------------------------------------------------------------------
> 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