We're updating the issue view to help you get more done.Learn more

release-plugin does not do well with properties variable substitution

Maven issue: https://issues.apache.org/jira/browse/MRELEASE-920

Workaround: Either use $

{project.version} or "real" version.



I ran:


mvn org.apache.maven.plugins:maven-release-plugin:2.5.3:clean org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare -DdryRun=true -DreleaseVersion=4.0.0-alpha-2 -DdevelopmentVersion=4.0.0-SNAPSHOT



I got:


functional-test .................................... SKIPPED


Zanata Platform .................................... FAILURE [ 11.407 s]


------------------------------------------------------------------------


BUILD FAILURE


------------------------------------------------------------------------


Total time: 12.154 s


Finished at: 2016-11-08T18:43:56+10:00


Final Memory: 26M/373M


------------------------------------------------------------------------


Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project zanata-platform: The artifact (org.zanata:zanata-common-api) requires a different version (4.0.0-alpha-2) than what is found (${project.version}

) for the expression (zanata.api.version) in the project (org.zanata:common). ->

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

After correcting the problems, you can resume the build with the command
mvn <goals> -rf :zanata-platform

Status

Assignee

Ding-Yi Chen

Reporter

Ding-Yi Chen

Tested Version/s

None

Sprint

None

Fix versions

Affects versions

platform-4.0.0

Priority

Highest