apache / apache/maven-release

[MRELEASE-1070] Creating branch from a tag

Open
#1,235 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
128
Forks
145
Avg merge
7h 7m
Merged PRs (30d)
3

Description

**[Peter Kronenberg](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=peterkronenberg)** opened **[MRELEASE-1070](https://issues.apache.org/jira/browse/MRELEASE-1070?redirect=false)** and commented

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?

---
No further details from [MRELEASE-1070](https://issues.apache.org/jira/browse/MRELEASE-1070?redirect=false)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the Maven `release:branch` command and reproduce the reported detached-HEAD and temporary-branch cases using the command shown. Trace how the command selects its starting tag and updates branches; done means a branch can be created from a specified tag without requiring or modifying a temporary branch.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, java
Domain
build-system, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.