@Bret, as you've figured out already, it works for non-jars. In case of a war, you just add artifacts type (<type>war</type>). :-)
@Baptiste, yes, for the release itself. I find it even more practical to have configuration for maven-release-plugin <autoVersionSubmodules>true</autoVersionSubmodules> in project's pom. Regards, Ziga Gregoric On Tue, Aug 20, 2013 at 10:44 PM, Baptiste Mathus <m...@batmat.net> wrote: > Would need to check but maybe try adding -DautoVersionSubmodules=true so > that all modules get released with that version. > > My 2 cents. > Le 20 août 2013 19:54, "laredotornado-3" <laredotorn...@gmail.com> a > écrit : > > > Hi, > > > > I'm using Maven 3.0.3. I have a multi-module project and want to use the > > Maven release plugin (through Jenkins). When running release:prepare, > the > > process dies with the error > > > > Executing Maven: -B -f > > /scratch/jenkins/workspace/subco/parent/pom.xml > > -amd -pl org.mainco.subco:childModuleA > -DdevelopmentVersion=38.0.1-SNAPSHOT > > -DreleaseVersion=38.0.0 -Dusername=myuser -Dpassword=********* -P prod -P > > cloudbees -DskipTests -Dresume=false -DdryRun=true release:prepare > > … > > message : Failed to execute goal > > org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) > on > > project childModuleA: Can't release project due to non released > > dependencies > > : > > org.mainco.subco:childModuleB:jar:38.0.0-SNAPSHOT:compile > > org.mainco.subco:parent:pom:38.0.0-SNAPSHOT > > > > > > Is there another way I can write the child dependency so that a release > > version will be used? I could hard code things but then I would have to > go > > and update all my child poms every time I want to use the Maven release > > plugin, which seems to defeat the purpose. > > > > The problematic child module (similar to others) is setup like so … > > > > <artifactId>childModuleA</artifactId> > > <packaging>jar</packaging> > > ... > > <parent> > > <artifactId>parent</artifactId> > > <groupId>org.mainco.subco</groupId> > > <version>38.0.0-SNAPSHOT</version> > > </parent> > > ... > > <dependencies> > > ... > > <dependency> > > <groupId>org.mainco.subco</groupId> > > <artifactId>childModuleB</artifactId> > > <version>${project.version}</version> > > </dependency> > > > > > > > > Thanks, - Dave > > > > > > > > -- > > View this message in context: > > > http://maven.40175.n5.nabble.com/Any-way-to-generically-specify-a-release-version-in-a-child-POM-when-using-the-Maven-release-plugin-tp5768328.html > > Sent from the Maven - Users mailing list archive at Nabble.com. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > >