You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Daniel Johnson <da...@cisco.com> on 2011/07/29 19:15:31 UTC

Automatic Update of Build Plugin Versions?

Hi,

Is there a simple solution for updating your dependent build plugin versions? I know of versions:display-plugin-updates, but is there anyway to automatically update them as well? I would love to run a goal on an aggregator POM that would update all projects build plugins to the most recent version (or specify a subset of groupId/artifactId plugins to update). Or is this usually just handled by a property in the aggregator POM?

Thanks in advance,
Daniel Johnson
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Automatic Update of Build Plugin Versions?

Posted by Marcin Kuthan <ma...@gmail.com>.
On 29 July 2011 22:02, Wayne Fay <wa...@gmail.com> wrote:
>
> > When I decide I want the new version of a plugin I want to update all projects
> > at once instead of having to open each pom and change it by hand. From
> > your response I am guessing it is expected to use properties to control this.
>
> Or use pluginManagement in a shared parent...
>

Definitely, the shared parent is your friend if you want manage plugin
versions in one central place. The shared parent is often called
corporate pom.  Define all plugins in the pluginManagement section in
the corporate pom. You can also specify plugin versions as properties,
then you can easily overwrite version in the specific project:

<properties>
<acme-corporate-pom.cleanVersion>2.4.1</acme-corporate-pom.cleanVersion>
</properties>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>${acme-corporate-pom.cleanVersion}</version>
</plugin>

The same concept can be used to customize plugins configuration (can
be easily overwritten):

<properties>
<!-- Automatically assign submodules the parent version (m-release-p) -->
<autoVersionSubmodules>true</autoVersionSubmodules>
</properties>

--
Marcin Kuthan
Maven For Enterprise - http://code.google.com/p/m4enterprise/

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


Re: Automatic Update of Build Plugin Versions?

Posted by Wayne Fay <wa...@gmail.com>.
> When I decide I want the new version of a plugin I want to update all projects
> at once instead of having to open each pom and change it by hand. From
> your response I am guessing it is expected to use properties to control this.

Or use pluginManagement in a shared parent...

Wayne

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


Re: Automatic Update of Build Plugin Versions?

Posted by Daniel Johnson <da...@cisco.com>.
Thanks for the response. What you mention is exactly my use case, When I decide I want the new version of a plugin I want to update all projects at once instead of having to open each pom and change it by hand. From your response I am guessing it is expected to use properties to control this.
Thanks,
Dan

On Jul 29, 2011, at 11:50 AM, Wayne Fay wrote:

>> I know of versions:display-plugin-updates, but is there anyway to automatically update them as well?
> 
> Not that I am aware of. But I don't bump plugin versions unless I
> suddenly need some new functionality or a specific bug-fix.
> 
> Wayne


Re: Automatic Update of Build Plugin Versions?

Posted by Wayne Fay <wa...@gmail.com>.
> Is there a simple solution for updating your dependent build plugin versions?

Most people want their builds to be "stable" first and foremost, so
this is not a well-supported use case.

> I know of versions:display-plugin-updates, but is there anyway to automatically update them as well?

Not that I am aware of. But I don't bump plugin versions unless I
suddenly need some new functionality or a specific bug-fix.

Wayne

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