You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marshall Schor <ms...@schor.com> on 2008/01/03 14:48:46 UTC

Updating version numbers in multiple-POM hierarchy

We have our project constructed using multiple sub-components, each with
their own POM, all of which inherit from a common <parent> POM.

When we want to update to the next version, we change the parent POM,
and inherit common info into the children.  However, we seem to have to
update all of the children, individually, to refer to the new version of
the parent.

Is there a best practices way to do this, other than making a script to
do the update?

-Marshall Schor

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


Re: Updating version numbers in multiple-POM hierarchy

Posted by Olivier Jacob <ol...@gmail.com>.
On Jan 3, 2008 2:48 PM, Marshall Schor <ms...@schor.com> wrote:

> We have our project constructed using multiple sub-components, each with
> their own POM, all of which inherit from a common <parent> POM.
>
> When we want to update to the next version, we change the parent POM,
> and inherit common info into the children.  However, we seem to have to
> update all of the children, individually, to refer to the new version of
> the parent.
>
> Is there a best practices way to do this, other than making a script to
> do the update?


Hi,

you should try using the release feature of Maven :
http://maven.apache.org/plugins/maven-release-plugin

HTH

-- 
Olivier Jacob
Consultant - OCTO Technology
50, avenue des Champs Elysées
75008 Paris