Hi Dave Thanks for the answer, but it's not quite what I meant :-)
I don't mean the parent version within the modules, but the parent version within the project (i.e. the module's parent). Let's say I have a company wide POM in the repo company-pom:1.2.0-SNAPSHOT which has been released to company-pom:1.2.0 All my projects depend on this (showing hierarchies by indenting and the specified parent in the POM with an arrow): my-project:3.0.0-SNAPSHOT -> company-pom:1.2.0-SNAPSHOT my-module-1:2.1.0-SNAPSHOT -> my-project:3.0.0-SNAPSHOT my-module-2:5.3.7-SNAPSHOT -> my-project:3.0.0-SNAPSHOT Now I need to release my-project, so the result should be my-project:3.0.0 -> company-pom:1.2.0 my-module-1:2.1.0 -> my-project:3.0.0 my-module-2:5.3.7 -> my-project:3.0.0 As you say, changing the modules from my-project:3.0.0-SNAPSHOT to my-project:3.0.0 is done with -DautoVersionSubmodules=true, but how do I update company-pom:1.2.0-SNAPSHOT to company-pom:1.2.0 within my-project? Best regards, Eric > -----Ursprüngliche Nachricht----- > Von: David C. Hicks [mailto:[email protected]] > Gesendet: Donnerstag, 10. September 2009 19:03 > An: Maven Users List > Betreff: Re: How to update parent during release:prepare > > The autoVersionSubmodules property can be used to tell the release > plugin to use the Parent's version for all of the child modules. Are > your modules all the same version as your parent? If so, then > it should > work as-is. I normally use the command: > > mvn -DautoVersionSubmodules=true release:prepare > > to start the process on a project with about 8 modules. It'll > ask me for > the release version of the parent and then the next > development version. > Beyond that, it's all automatic. > > Dave > > > On 09/10/2009 05:30 AM, Lewis, Eric wrote: > > Hi > > > > I'm trying to use release:prepare for a project with > several modules. > > The project has a parent which is a SNAPSHOT. Now my > question is: How can I tell release:prepare to update the > project's parent version to the parent's released version? > > > > Best regards, > > Eric > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
