maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luc Chapon (JIRA)" <>
Subject [jira] [Commented] (MRELEASE-951) Release plugin ignores developmentVersion property
Date Fri, 23 Dec 2016 15:03:58 GMT


Luc Chapon commented on MRELEASE-951:


I don’t know how much this is related, but in my multi-module project developmentVersion
is always ignored

mvn --batch-mode release:prepare-with-pom -DreleaseVersion=9.0.21 -DdevelopmentVersion=9.0.30

I have <autoVersionSubmodules>true</autoVersionSubmodules> in my parent pom

I was expecting in my poms.xml 
or even

But I get 
<version>9.0.22-SNAPSHOT</version>, which the expected value in the absence of

If I go interactive, without the --batch-mode flag
These questions are asked
What is the release version for xxx 9.0.20: : 9.0.21
What is SCM release tag or label for xxx xxx-9.0.21: :
What is the new development version for xxx 9.0.22-SNAPSHOT: : 9.0.30-SNAPSHOT

and then it works !
<version>9.0.30-SNAPSHOT</version> in all my poms.xml

> Release plugin ignores developmentVersion property
> ---------------------------------------------------------------------
>                 Key: MRELEASE-951
>                 URL:
>             Project: Maven Release Plugin
>          Issue Type: Bug
>         Environment: maven-release-plugin 2.5.3
>            Reporter: Robert Patrick
> I created my file with the following content:
> tag=myproject-2.0.0
> releaseVersion=2.0.0
> developmentVersion=2.1.0-SNAPSHOT
> and invoked the release plugin with:
> mvn --batch-mode release:prepare
> After running the maven-release-plugin, the POM version was set to 2.0.1-SNAPSHOT even
though I told it to set it to 2.1.0-SNAPSHOT.

This message was sent by Atlassian JIRA

View raw message