You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Dipl.-Ing. Torsten Liermann" <li...@liermann-it.de> on 2012/02/19 01:29:06 UTC

Help! What I'm doing wrong with release:branch?

Hi, (sorry, I can't speak english :( )

I would like to create a branch with a release version in all pom's

The Snapshot version of the trunk is 3.0.2-SNAPSHOT and the release version should be 3.0-b01.

Calling maven with 

mvn org.apache.maven.plugins:maven-release-plugn:2.2.2:branch -DbranchName=3.0-b01 -DreleaseVersion=3.0-b01 -DupdateBranchVersions=true  -DupdateVersionsToSnapshot=false -DautoVersionSubmodules=true -DupdateWorkingCopyVersions=false

results in pom's with version of 3.0-b01-SNAPSHOT in branch 3.0-b01.
But I need the fix verssion 3.0-b01.

Also the updated of the scm info is wrong:

<scm>
  <connection>scm:svn:svn://lierdata/lehel/branches/3.0-b01/trunk</connection> 
  <developerConnection>scm:svn:svn://lierdata/lehel/branches/3.0-b01/trunk</developerConnection> 
  <url>scm:svn:svn://lierdata/lehel/branches/3.0-b01/trunk</url> 
  </scm>

Thanks for a hint
Torsten

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Help! What I'm doing wrong with release:branch?

Posted by Ansgar Konermann <an...@googlemail.com>.
Am 19.02.2012 01:29 schrieb "Dipl.-Ing. Torsten Liermann" <
lier@liermann-it.de>:
>
> Hi, (sorry, I can't speak english :( )
>
> I would like to create a branch with a release version in all pom's
>

> The Snapshot version of the trunk is 3.0.2-SNAPSHOT and the release
version should be 3.0-b01.

Change the version of your trunk to 3.0-b01-SNAPSHOT, commit it and do the
usual release:clean release:prepare release:perform.

>
> Calling maven with
>
> mvn org.apache.maven.plugins:maven-release-plugn:2.2.2:branch
-DbranchName=3.0-b01 -DreleaseVersion=3.0-b01 -DupdateBranchVersions=true
 -DupdateVersionsToSnapshot=false -DautoVersionSubmodules=true
-DupdateWorkingCopyVersions=false
>
> results in pom's with version of 3.0-b01-SNAPSHOT in branch 3.0-b01.
> But I need the fix verssion 3.0-b01.

The release plugin strips "-SNAPSHOT" to derive the release version (which
it creates a tag for) and advances the version in your trunk to the next
snapshot.

Let Maven do the magic. In general, aim to have no parameters passed to the
release plugin when releasing. This will keep your life simple ;-)

HTH

Best regards,

Ansgar

>
> Also the updated of the scm info is wrong:
>
> <scm>
>
 <connection>scm:svn:svn://lierdata/lehel/branches/3.0-b01/trunk</connection>
>
 <developerConnection>scm:svn:svn://lierdata/lehel/branches/3.0-b01/trunk</developerConnection>
>  <url>scm:svn:svn://lierdata/lehel/branches/3.0-b01/trunk</url>
>  </scm>
>
> Thanks for a hint
> Torsten
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

Re: Help! What I'm doing wrong with release:branch?

Posted by Ansgar Konermann <an...@googlemail.com>.
Try release:prepare release:perform -Dtag=3.0-b01 -Darguments=-Dtag=3.0-b01

You probably don't need a dedicated branch.
Am 19.02.2012 16:11 schrieb "Dipl.-Ing. Torsten Liermann" <
lier@liermann-it.de>:

>
> Yes, it is unfortunately.
> But, when release:branch ask me for the pom version of the branch, the pom
> will have exactly this version string (without the SNAPSHOT extension).
>
> I think, i will hack the release plugin for me.
>
> my use case for reaching a fix version without affecting the development
> on the trunk:
>  - create a branch with the fixed poms (mvn release:branch)
>  - build and deploy the fixed artifacts (mvn deploy)
>  - create a tag
>  - remove the branch
>
> To.
>
> On Sun, 19 Feb 2012 13:21:30 +0000
>  Stephen Connolly <st...@gmail.com> wrote:
> >Looks like you are fighting maven (a loosing battle)
> >
> >Only tags should have a fixed version
> >
> >Sent from my iPhone
> >
> >On 19 Feb 2012, at 00:29, "Dipl.-Ing. Torsten Liermann" <
> lier@liermann-it.de> wrote:
> >
> >> Hi, (sorry, I can't speak english :( )
> >>
> >> I would like to create a branch with a release version in all pom's
> >>
> >> The Snapshot version of the trunk is 3.0.2-SNAPSHOT and the release
> version should be 3.0-b01.
> >>
> >> Calling maven with
> >>
> >> mvn org.apache.maven.plugins:maven-release-plugn:2.2.2:branch
> -DbranchName=3.0-b01 -DreleaseVersion=3.0-b01 -DupdateBranchVersions=true
>  -DupdateVersionsToSnapshot=false -DautoVersionSubmodules=true
> -DupdateWorkingCopyVersions=false
> >>
> >> results in pom's with version of 3.0-b01-SNAPSHOT in branch 3.0-b01.
> >> But I need the fix verssion 3.0-b01.
> >>
> >> Also the updated of the scm info is wrong:
> >>
> >> <scm>
> >>
>  <connection>scm:svn:svn://lierdata/lehel/branches/3.0-b01/trunk</connection>
> >>
>  <developerConnection>scm:svn:svn://lierdata/lehel/branches/3.0-b01/trunk</developerConnection>
> >>  <url>scm:svn:svn://lierdata/lehel/branches/3.0-b01/trunk</url>
> >>  </scm>
> >>
> >> Thanks for a hint
> >> Torsten
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >For additional commands, e-mail: users-help@maven.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Help! What I'm doing wrong with release:branch?

Posted by "Dipl.-Ing. Torsten Liermann" <li...@liermann-it.de>.
Yes, it is unfortunately.
But, when release:branch ask me for the pom version of the branch, the pom will have exactly this version string (without the SNAPSHOT extension).

I think, i will hack the release plugin for me.

my use case for reaching a fix version without affecting the development on the trunk:
  - create a branch with the fixed poms (mvn release:branch)
  - build and deploy the fixed artifacts (mvn deploy)
  - create a tag
  - remove the branch

To.

On Sun, 19 Feb 2012 13:21:30 +0000
 Stephen Connolly <st...@gmail.com> wrote:
>Looks like you are fighting maven (a loosing battle)
>
>Only tags should have a fixed version
>
>Sent from my iPhone
>
>On 19 Feb 2012, at 00:29, "Dipl.-Ing. Torsten Liermann" <li...@liermann-it.de> wrote:
>
>> Hi, (sorry, I can't speak english :( )
>> 
>> I would like to create a branch with a release version in all pom's
>> 
>> The Snapshot version of the trunk is 3.0.2-SNAPSHOT and the release version should be 3.0-b01.
>> 
>> Calling maven with 
>> 
>> mvn org.apache.maven.plugins:maven-release-plugn:2.2.2:branch -DbranchName=3.0-b01 -DreleaseVersion=3.0-b01 -DupdateBranchVersions=true  -DupdateVersionsToSnapshot=false -DautoVersionSubmodules=true -DupdateWorkingCopyVersions=false
>> 
>> results in pom's with version of 3.0-b01-SNAPSHOT in branch 3.0-b01.
>> But I need the fix verssion 3.0-b01.
>> 
>> Also the updated of the scm info is wrong:
>> 
>> <scm>
>>  <connection>scm:svn:svn://lierdata/lehel/branches/3.0-b01/trunk</connection> 
>>  <developerConnection>scm:svn:svn://lierdata/lehel/branches/3.0-b01/trunk</developerConnection> 
>>  <url>scm:svn:svn://lierdata/lehel/branches/3.0-b01/trunk</url> 
>>  </scm>
>> 
>> Thanks for a hint
>> Torsten
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>> 
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Help! What I'm doing wrong with release:branch?

Posted by Stephen Connolly <st...@gmail.com>.
Looks like you are fighting maven (a loosing battle)

Only tags should have a fixed version

Sent from my iPhone

On 19 Feb 2012, at 00:29, "Dipl.-Ing. Torsten Liermann" <li...@liermann-it.de> wrote:

> Hi, (sorry, I can't speak english :( )
> 
> I would like to create a branch with a release version in all pom's
> 
> The Snapshot version of the trunk is 3.0.2-SNAPSHOT and the release version should be 3.0-b01.
> 
> Calling maven with 
> 
> mvn org.apache.maven.plugins:maven-release-plugn:2.2.2:branch -DbranchName=3.0-b01 -DreleaseVersion=3.0-b01 -DupdateBranchVersions=true  -DupdateVersionsToSnapshot=false -DautoVersionSubmodules=true -DupdateWorkingCopyVersions=false
> 
> results in pom's with version of 3.0-b01-SNAPSHOT in branch 3.0-b01.
> But I need the fix verssion 3.0-b01.
> 
> Also the updated of the scm info is wrong:
> 
> <scm>
>  <connection>scm:svn:svn://lierdata/lehel/branches/3.0-b01/trunk</connection> 
>  <developerConnection>scm:svn:svn://lierdata/lehel/branches/3.0-b01/trunk</developerConnection> 
>  <url>scm:svn:svn://lierdata/lehel/branches/3.0-b01/trunk</url> 
>  </scm>
> 
> Thanks for a hint
> Torsten
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org