Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-971

release:branch does not create release.properties so release:perform fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 2.5.3
    • None
    • branch, perform
    • None

    Description

      I am using the release plugin to release through a CI server. What I do is creat a branch with

      mvn release:branch --batch-mode -DbranchName=0.1.11 -Dproject.net.aim:releaseTest=0.1.11 -Dproject.net.aim:releaseTest=0.1.12-SNAPSHOT -DupdateBranchVersions=true

      A branch is created and the current dev branch is getting to the next SNAPSHOT Version, so far so good.
      To complete the version I need to do the next step. I want to do a release:perform to release the newly created branch. This fails with the following error message:

      $ mvn release:perform
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building releaseTest 0.1.11-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] — maven-release-plugin:2.5.3:perform (default-cli) @ releaseTest —
      [ERROR] No SCM URL was provided to perform the release from
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 0.846 s
      [INFO] Finished at: 2016-12-07T19:02:29+01:00
      [INFO] Final Memory: 13M/309M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:perform (default-cli) on project releaseTest: No SCM URL was provided to perform the release from -> [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

      Attachments

        Activity

          People

            Unassigned Unassigned
            chilber Carsten Hilber
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: