[ 
https://issues.apache.org/jira/browse/MRELEASE-1065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17348647#comment-17348647
 ] 

Peter Kronenberg commented on MRELEASE-1065:
--------------------------------------------

Well, my real question is what release:branch is supposed to do.  Is there 
additional documentation on that?  It almost sounds like you're not 
recommending it.

I don't want to have a tag on a branch.  I want to create a branch instead of a 
tag.

In your example above, which is close to what I'm doing now, what is the 
purpose of the last step `mvn version:set`.  `release:prepare` and 
`release:perform` has already set the new version for development, correct?

> Workflow for maven-release-plugin for creating new release in branch
> --------------------------------------------------------------------
>
>                 Key: MRELEASE-1065
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-1065
>             Project: Maven Release Plugin
>          Issue Type: Improvement
>            Reporter: Peter Kronenberg
>            Priority: Major
>
> Hi, hope this is the right place for questions
> I'm trying to figure out the proper workflow for creating a new release in a 
> branch, but still setting the current branch for new development
> Assuming I'm currently at release 1.0.5-SNAPSHOT. If I do *mvn 
> release:prepare*, it correctly updates the version to 1.0.5, tags it, and 
> then sets up for new development with 1.0.6-SNAPSHOT.
> I want to do something similar with a new branch instead of tagging. My 
> expectation would be the new branch would get 1.0.5 and the current branch 
> would get 1.0.6-SNAPSHOT
> Using the command 
> {code:java}
> mvn release:branch -DbranchName=1.0.5 -DreleaseVersion=1.0.5
> {code}
> I've tried variations of *-DupdateBranchVersions* and 
> *-DupdateWorkingCopyVersions*. It doesn't appear to do what I want. I also 
> can't seem to get *-DupdateVersionsToSnapshot=false* to work. It insists on 
> naming the branch with Snapshot
> Is there any way to do this?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to