maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frederic Camblor <fcamb...@gmail.com>
Subject Re: Maven release:branch commiting things on tags
Date Tue, 02 Nov 2010 16:59:59 GMT
Really nobody has encountered the problem ?

Should I fill an issue then ?

Frederic

On Fri, Oct 15, 2010 at 7:08 PM, Frederic Camblor <fcamblor@gmail.com>wrote:

> Hi maven users !
>
> I learned something some days ago, about maven-release-plugin about its
> branch goal.
>
> Currently, I execute following command line :
>
> mvn --batch-mode org.apache.maven.plugins:maven-release-plugin:2.0:branch -DautoVersionSubmodules=true
-DtagBase=tags/ -Dtag=1.0.0 -DupdateBranchVersions=true -DreleaseVersion=2.0.0 -DbranchBase=branches/
-DbranchName=2.0.0
>
> My goal, here, is to create a new branch called "2.0.0" from the 1.0.0 tag.
>
> It works great but I found something crappy : some commit were made on the
> 1.0.0 tag hierarchy.
> That is to say, the plugin is acting this way :
> - Checkout tag ${tagBase}${tag} in working directory
> - Modify pom to ${releaseVersion}-SNAPSHOT & scm
> - Commit pom (on tag 1.0.0 !!!)
> --------- If something is going bad during the next two lines, your tag
> hierarchy will be altered
> - SVN Copy ${tagBase}${tag}/ hierarchy to ${branchBase}${branchName}/
> hierarchy
> - Re-Modify pom in working directory to ${tag}
> - Re-Commit pom on tag 1.0.0
>
> I would think it would act this way :
> - SVN Copy ${tagBase}${tag}/ hierarchy to ${branchBase}${branchName}/
> hierarchy
> - Checkout ${branchBase}${branchName}/ in working directory
> - Modify pom to ${releaseVersion}-SNAPSHOT
> - Commit pom (on branch !) & scm
>
> Would it be some reason why the first strategy is applied ?
> Am I badly using release:branch goal ?
>
> Thanks in advance for your precisions.
> Frédéric
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message