You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Peter Kronenberg (Jira)" <ji...@apache.org> on 2021/09/16 02:58:00 UTC

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

     [ https://issues.apache.org/jira/browse/MRELEASE-1070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Kronenberg updated MRELEASE-1070:
---------------------------------------
    Description: 
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?

  was:
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 -DupdateWorkingCopyVersion=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?


> 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.3.4#803005)