First you need to start with a working copy checked out from the Tag.
If the tag was created by the release plugin, the starting scm url
should be correct, and point back to the tag.

Then use the plugin to crate the branch and switch the working copy to
the branch.

An alternative is to manually
- copy from the tag to a new branch
- switch the working copy to the new branch [or check out a working
copy from the new branch]
- update the pom to use the new branch's url
- commit the update to the pom

On Thu, Jul 31, 2008 at 4:34 PM, evans022 <[EMAIL PROTECTED]> wrote:
>
> I have the same question.  What is the correct steps in order to create a
> branch from a tag using the release:branch goal?
>
> Thank you,
> Jason
>
>
> Nick Stolwijk wrote:
>>
>> Can someone comment on this mail? Is the release:branch goal fitted to
>> create a branch from a tag and update the version numbers?
>>
>> With regards,
>>
>> Nick Stolwijk
>> ~Java Developer~
>>
>> Iprofs BV.
>> Claus Sluterweg 125
>> 2012 WS Haarlem
>> www.iprofs.nl
>>
>>
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: Tue 6/10/2008 11:15
>> To: users@maven.apache.org
>> Subject: Release:branch from a tag
>>
>> I am trying to create a branch from a tag with the release plugin. I have
>> a checkout from trunk and try the following command:
>>
>> mvn release:branch -Dtag=TestProject-1.4 -DbranchName=TestProject-1.4.x s
>> -DupdateBranchVersions=true
>>
>> I was expecting that a branch (/branches/TestProject-1.4.x) was created
>> from a tag (/tags/TestProject-1.4) but it is created from the current
>> trunk (/trunk). It seems the -Dtag option doesn't do anything, because it
>> is creating a branch from the current trunk. Is it really necessary to
>> checkout a tag before branching it? I've looked at the ReleaseManager
>> source and it seems the tag option isn't considered at all.
>>
>> With regards,
>>
>> Nick Stolwijk
>> ~Java Developer~
>>
>> Iprofs BV.
>> Claus Sluterweg 125
>> 2012 WS Haarlem
>> www.iprofs.nl
>>
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Release%3Abranch-from-a-tag-tp17751076p18762978.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to