Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: update-versions
-
Labels:None
-
Number of attachments :
Description
The documentation
http://maven.apache.org/plugins/maven-release-plugin/examples/update-versions.html
states "The update-versions goal can use the same properties used by the prepare goal for specifying the versions to be used."
That's not true, as releaseVersion is not supported:
http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#releaseVersion
This means, that if you do this:
mvn --batch-mode release:update-versions -DdevelopmentVersion=1.2.0
that the set version is not 1.2.0, but in fact 1.2.0-SNAPSHOT.
Activity
Geoffrey De Smet
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | 0001-MRELEASE-699-release-update-versions-should-support-.patch [ 56258 ] |
Robert Scholte
made changes -
| Description |
The documentation
http://maven.apache.org/plugins/maven-release-plugin/examples/update-versions.html states "The update-versions goal can use the same properties used by the prepare goal for specifying the versions to be used." That's not true, as releaseVersion is not supported: http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#releaseVersion This means, that if you do this: mvn --batch-mode release:update-versions -DdevelopmentVersion=1.2.0 that the set version is not 1.2.0, but in fact 1.2.0-SNAPSHOT. |
The documentation
http://maven.apache.org/plugins/maven-release-plugin/examples/update-versions.html states "The update-versions goal can use the same properties used by the prepare goal for specifying the versions to be used." That's not true, as releaseVersion is not supported: http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#releaseVersion This means, that if you do this: {{mvn --batch-mode release:update-versions -DdevelopmentVersion=1.2.0}} that the set version is not 1.2.0, but in fact 1.2.0-SNAPSHOT. |
| Component/s | update-versions [ 15464 ] |
I patched this, please pull my changes:
https://github.com/apache/maven-release/pull/2
This fix also fixes the fact that RewritePomVersionsPhase.getOriginalVersionMap() was inaccurate (although that did not seem to have any bad effect).