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

-SNAPSHOT is unexpectedly appended to version in branched pom.xml

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1, 2.2
    • Fix Version/s: 3.0.0-M1
    • Component/s: branch
    • Labels:
      None
    • Environment:
      apache-maven-2.2.1

      Description

      When running the following

      mvn org.apache.maven.plugins:maven-release-plugin:2.2:branch -DbranchName=ROOT_1.0_RB -DupdateBranchVersions=true -DautoVersionSubmodules=true -DdryRun=true -DreleaseVersion=1.0 -DdevelopmentVersion=1.1-SNAPSHOT

      the branched pom.xml gets the version "1.0-SNAPSHOT" instead of expected "1.0" (please see attached poms for details). Trying to add -DupdateVersionsToSnapshot=false does not help either.

      Side note: Did a run in interactive mode (by leaving out -DreleaseVersion=1.0 and -DdevelopmentVersion=1.1-SNAPSHOT, which produced an expected result where the submitted versions were reflected correctly in the pom-files.

        Attachments

        1. pom.xml.branch
          1 kB
          Ken Alexandersson
        2. pom.xml.next
          1 kB
          Ken Alexandersson
        3. pom.xml.releaseBackup
          1 kB
          Ken Alexandersson

          Issue Links

            Activity

              People

              • Assignee:
                rfscholte Robert Scholte
                Reporter:
                kensebense Ken Alexandersson
              • Votes:
                3 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: