I think what you want is something like:

mvn -B release:prepare -Dtag=0.4.0 -DdevelopmentVersion=0.5.0-SNAPSHOT
-DreleaseVersion=0.4.0 -DautoVersionSubmodules=true

autoVersionSubmodules could be configured in your pom (in the
pluginManagement section), so that you don't have to specify it each time
(if you always want all modules to have the same version).

/Anders

On Fri, Jan 21, 2011 at 14:44, milewc <[email protected]> wrote:

>
> I have the following problem releasing a project with the
> maven-release-plugin (version 2.1). I’m using the maven release plugin in
> batch-mode. When using the release plugin in interactive mode, the plugin
> prompts for the new versions of snapshot dependencies. How can I populate
> the versions (development + release) of snapshot dependencies running the
> mvn release:prepare command in batch-mode?
> I 've tried something like this:
>
> call mvn -B release:prepare -Dtag=0.4.0 \
>    -DdevelopmentVersion=0.5.0-SNAPSHOT -DreleaseVersion=0.4.0 \
>    -Ddependency.org.sonatype.mavenbook:project-a.release=0.4.0 \
>    -Ddependency.org.sonatype.mavenbook:project-a.development=0.5.0-SNAPSHOT
>
> and the pom content of project-b is as follows:
>
> http://maven.40175.n5.nabble.com/file/n3351425/pom.xml pom.xml
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/maven-release-plugin-tp3351425p3351425.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to