Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.0.0-M7
-
None
-
None
Description
Having this in source pom.xml:
<version>${majorversion}.3.4-SNAPSHOT</version>
meaning the major version is set via profile properties, but running the plugin with -DupdateWorkingCopyVersions=false still causes the version in pom.xml to be overridden with actual value (which is never "actual" as defined in profile property):
<profile> <id>java8</id> <properties> <majorversion>0.8</majorversion> </properties> </profile> <profile> <id>java11</id> <properties> <majorversion>0.9</majorversion> </properties> </profile>
The command I run:
mvn -DdryRun=true -DcheckModificationExcludeList="pom.xml" -DupdateWorkingCopyVersions=false release:prepare -P java11
the diff:
can this plugin not touch the version if there are set flag "updateWorkingCopyVersions" to "false"?