You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by motes motes <mo...@gmail.com> on 2012/12/12 10:34:30 UTC

maven-versions-plugin and non aggregator "multi-module" projects

I have a bunch of projects that all specify the same parent and
inherit the parent version. But the parent does not list the
corresponding projects as sub-modules hence its not an aggregator. I
need to use the maven-version-plugin:

http://mojo.codehaus.org/versions-maven-plugin/update-child-modules-mojo.html

to automatically update the version of the parent and the "child"
projects. This works fine if I convert the parent to an aggregator
(listing the child projects as modules) but is it possible to do it
without doing this conversion?

A more manual approach could be to:

1) Run mvn versions:set -DnewVersion=new-version on the parent
2) install the parent
3) For each child run mvn versions:update-parent -DallowSnapshots=true


but then I might as well convert the parent to an aggregator since
computing the list of children must be done anyway.

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