You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2022/01/01 20:14:00 UTC

[jira] [Commented] (MRELEASE-1070) Creating branch from a tag

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

Michael Osipov commented on MRELEASE-1070:
------------------------------------------

There is not way, this process is not supported currently.

> Creating branch from a tag
> --------------------------
>
>                 Key: MRELEASE-1070
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-1070
>             Project: Maven Release Plugin
>          Issue Type: Improvement
>            Reporter: Peter Kronenberg
>            Priority: Major
>
> What is the correct process for using `release:branch` to create a branch from a tag in order to create a Hotfix?  If I just checkout the tag, the plugin complains because I have a detached Head.  If I checkout the tag with a temporary branch name, then the plugin creates my new branch, but it also commits changes to my temp branch, which I really just want to delete
>  
> I'm using a command line like this
> `mvn release:branch -DbranchName="peter-test-90.90.90-SNAPSHOT" -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false -DreleaseVersion="90.90.90-SNAPSHOT"`
>  
> Is there a way I can just tell it which tag that I want to create a branch off of?



--
This message was sent by Atlassian Jira
(v8.20.1#820001)