You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Sartisty <sa...@gmail.com> on 2014/05/08 04:49:52 UTC

how maven build plugins plugin use latest version

hi, all,
I have developed a maven build plugin and I will upgrade it
frequently. How to use the latest release version, not modify plugin
version in pom.xml frequently? One idea is no version setting, but it
will generate too much warnings. Setting LATEST, it won't work.
Is there any good solution? Glad to hear it.

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


Re: how maven build plugins plugin use latest version

Posted by Dan Tran <da...@gmail.com>.
Setup your pom to use a verion properties with a default value (
<your.plugin.version>somedefault</your.plugin.version>

then you can override externally using -Dyour.plugin.version=xxxx

that my be close to what you looking for

-D


On Tue, May 13, 2014 at 12:31 AM, Karl Heinz Marbaise <kh...@gmx.de>wrote:

> Hi,
>
>
>
> > hi, all,
>
>> I have developed a maven build plugin and I will upgrade it
>> frequently. How to use the latest release version, not modify plugin
>> version in pom.xml frequently? One idea is no version setting, but it
>> will generate too much warnings. Setting LATEST, it won't work.
>> Is there any good solution? Glad to hear it.
>>
>
> The short answer is: Not possible.
>
> Just use the version in the pom file makes your build reproducible etc.
> If you update your plugin to new version it's a good idea to update the
> version in the pom file as well if you need to. The warnings which are
> being generated are a hint about not reproducible builds.
>
>
> Kind regards
> Karl-Heinz Marbaise
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

Re: how maven build plugins plugin use latest version

Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi,


 > hi, all,
> I have developed a maven build plugin and I will upgrade it
> frequently. How to use the latest release version, not modify plugin
> version in pom.xml frequently? One idea is no version setting, but it
> will generate too much warnings. Setting LATEST, it won't work.
> Is there any good solution? Glad to hear it.

The short answer is: Not possible.

Just use the version in the pom file makes your build reproducible etc.
If you update your plugin to new version it's a good idea to update the 
version in the pom file as well if you need to. The warnings which are 
being generated are a hint about not reproducible builds.


Kind regards
Karl-Heinz Marbaise

















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


Re: how maven build plugins plugin use latest version

Posted by Anders Hammar <an...@hammar.net>.
Please use the users mailing list for this sort of questions. This list is
for development of Maven itself.

/Anders


On Thu, May 8, 2014 at 4:49 AM, Sartisty <sa...@gmail.com> wrote:

> hi, all,
> I have developed a maven build plugin and I will upgrade it
> frequently. How to use the latest release version, not modify plugin
> version in pom.xml frequently? One idea is no version setting, but it
> will generate too much warnings. Setting LATEST, it won't work.
> Is there any good solution? Glad to hear it.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>