Uploaded image for project: 'Zanata'
  1. ZNTA-1474

release-plugin does not do well with properties variable substitution

    Details

    • Type: Bug
    • Status: Closed (View workflow)
    • Priority: Highest
    • Resolution: Ready for Release
    • Affects Version/s: platform-4.0.0
    • Fix Version/s: platform-4.0.0
    • Component/s: None
    • Labels:
      None
    • Tested Version/s:
      None
    • Sprint:
      16.23

      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.3:prepare -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.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). -> [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

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                dchen Ding-Yi Chen
                Reporter:
                dchen Ding-Yi Chen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: