release-plugin does not do well with properties variable substitution

Description

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.3repare -DdryRun=true -DreleaseVersion=4.0.0-alpha-2 -DdevelopmentVersion=4.0.0-SNAPSHOT

I got:
[INFO] functional-test .................................... SKIPPED
[INFO] Zanata Platform .................................... FAILURE [ 11.407 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.154 s
[INFO] Finished at: 2016-11-08T18:43:56+10:00
[INFO] Final Memory: 26M/373M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3repare (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). -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :zanata-platform

Environment

None

Status

Assignee

Ding-Yi Chen

Reporter

Ding-Yi Chen

Labels

None

Tested Version/s

None

Sprint

None

Fix versions

Affects versions

Priority

Highest
Configure