[
https://jira.codehaus.org/browse/MRELEASE-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=325307#comment-325307
]
DK commented on MRELEASE-838:
-----------------------------
The following command:
mvn release:branch -DupdateBranchVersions=true -DupdateVersionsToSnapshot=false
-DupdateDependencies=false -DupdateWorkingCopyVersions=false
-DsuppressCommitBeforeBranch=true -DbranchName=MyBranch
Results in:
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-release-plugin:2.4.1:branch (default-cli) on
project myproject: Cannot perform a remote tag or branch without committing the
working copy first. -> [Help 1]
[ERROR]
But I cannot/should not commit to the tag
> Creating a branch from a tag does not work
> ------------------------------------------
>
> Key: MRELEASE-838
> URL: https://jira.codehaus.org/browse/MRELEASE-838
> Project: Maven 2.x Release Plugin
> Issue Type: Bug
> Components: branch
> Affects Versions: 2.4.1
> Reporter: DK
> Priority: Blocker
>
> I'm trying to use the following command to create a branch from an SVN tag:
> mvn release:branch -DupdateBranchVersions=true
> -DupdateVersionsToSnapshot=false -DupdateWorkingCopyVersions=false
> -DbranchName=MyBranch
> However, it makes commits to the tag which it shouldn't and also updates the
> version and dependencies in the branch pom to the latest SNAPSHOT.
> I also tried:
> mvn release:branch -DupdateBranchVersions=true
> -DupdateVersionsToSnapshot=false -DupdateDependencies=false
> -DupdateWorkingCopyVersions=false -DsuppressCommitBeforeBranch=true
> -DbranchName=MyBranch
> And this fails with:
> [ERROR] Error resolving version for plugin 'maven-release-plugin:2.4.1' from
> the repositories [local (/root/.m2/repository), central
> (http://nexus.forge.avaya.com/content/groups/public), ace_special
> (http://nexus.forge.avaya.com/content/repositories/ace_special)]: Plugin not
> found in any plugin repository -> [Help 1]
> I think this is a pretty major bug.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira