You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ken Alexandersson (JIRA)" <ji...@codehaus.org> on 2011/07/13 15:26:42 UTC

[jira] Created: (MRELEASE-694) -SNAPSHOT is unexpectedly appended to version in branched pom.xml

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

                 Key: MRELEASE-694
                 URL: https://jira.codehaus.org/browse/MRELEASE-694
             Project: Maven 2.x Release Plugin
          Issue Type: Bug
          Components: branch
    Affects Versions: 2.2, 2.1
         Environment: apache-maven-2.2.1
            Reporter: Ken Alexandersson
            Priority: Critical
         Attachments: pom.xml.branch, pom.xml.next, pom.xml.releaseBackup

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.  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira