You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stephane Nicoll (JIRA)" <ji...@codehaus.org> on 2007/05/25 09:53:59 UTC

[jira] Issue Comment Edited: (MRELEASE-128) SCM properties being replaced during release:perform

    [ http://jira.codehaus.org/browse/MRELEASE-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_97045 ] 

Stephane Nicoll edited comment on MRELEASE-128 at 5/25/07 2:52 AM:
-------------------------------------------------------------------

Brett,

It's very similar to the comment of Barrie Treloar. I have a ${maven.username} token in the developerConnection entry and it's replaced by release:prepare.

See this diff

{noformat}
[maven-release-plugin] prepare for next development iteration

Index: pom.xml
===================================================================
RCS file: /data/cvsroot/bar/pom.xml,v
retrieving revision 1.19.4.7
retrieving revision 1.19.4.8
diff -u -d -r1.19.4.7 -r1.19.4.8
--- pom.xml	23 May 2007 13:58:35 -0000	1.19.4.7
+++ pom.xml	23 May 2007 13:58:54 -0000	1.19.4.8
@@ -8,7 +8,7 @@
     </parent>
     <groupId>com.foo.shared.bar</groupId>
     <artifactId>ionic-bar</artifactId>
-    <version>5.5.5</version>
+    <version>5.5.6-SNAPSHOT</version>
     <packaging>jar</packaging>
     <inceptionYear>2007</inceptionYear>
     <name>bar</name>
@@ -296,8 +296,8 @@
 
     <scm>
         <connection>scm:cvs:pserver:anonymous:blablabla@cvsserver:/data/cvsroot:bar</connection>
-        <developerConnection>scm:cvs:pserver:$\{maven.username\}@cvsserver:/data/cvsroot:bar</developerConnection>
+        <developerConnection>scm:cvs:pserver:maven@cvsserver:/data/cvsroot:bar</developerConnection>
         <url>http://intranet/cgi-bin/viewcvs.cgi/bar/</url>
-        <tag>V5_5_5</tag>
+        <tag>RSE341</tag>
   </scm>
 </project>
{noformat}

SCM is CVS of course.


 was:
Brett,

It's very similar to the comment of Barrie Treloar. I have a ${maven.username} token in the developerConnection entry and it's replaced by release:prepare.

See this diff

{noformat}
[maven-release-plugin] prepare for next development iteration

Index: pom.xml
===================================================================
RCS file: /data/cvsroot/bar/pom.xml,v
retrieving revision 1.19.4.7
retrieving revision 1.19.4.8
diff -u -d -r1.19.4.7 -r1.19.4.8
--- pom.xml	23 May 2007 13:58:35 -0000	1.19.4.7
+++ pom.xml	23 May 2007 13:58:54 -0000	1.19.4.8
@@ -8,7 +8,7 @@
     </parent>
     <groupId>com.foo.shared.bar</groupId>
     <artifactId>ionic-bar</artifactId>
-    <version>5.5.5</version>
+    <version>5.5.6-SNAPSHOT</version>
     <packaging>jar</packaging>
     <inceptionYear>2007</inceptionYear>
     <name>bar</name>
@@ -296,8 +296,8 @@
 
     <scm>
         <connection>scm:cvs:pserver:anonymous:blablabla@cvsserver:/data/cvsroot:bar</connection>
-        <developerConnection>scm:cvs:pserver:${maven.username}@cvsserver:/data/cvsroot:bar</developerConnection>
+        <developerConnection>scm:cvs:pserver:maven@cvsserver:/data/cvsroot:bar</developerConnection>
         <url>http://intranet/cgi-bin/viewcvs.cgi/bar/</url>
-        <tag>V5_5_5</tag>
+        <tag>RSE341</tag>
   </scm>
 </project>
{noformat}

SCM is CVS of course.

> SCM properties being replaced during release:perform
> ----------------------------------------------------
>
>                 Key: MRELEASE-128
>                 URL: http://jira.codehaus.org/browse/MRELEASE-128
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>         Environment: Windows XP client, Linux repo, CVS, Maven 2.0.4
>            Reporter: Craig Dickson
>            Assignee: Emmanuel Venisse
>            Priority: Critical
>             Fix For: 2.0-beta-5
>
>         Attachments: after-release-perform-pom.xml, after-release-prepre-pom.xml, original-pom.xml
>
>
> The <scm> section of a pom in CVS for a pom archetype project looks like this prior to executing release:prepare :
> <scm>
> 	<connection>${base.cvs.url}:commons-maven/uber-pom</connection>
> 	<developerConnection>${base.cvs.url}:commons-maven/uber-pom</developerConnection>
> 	<url>${base.viewcvs.url}/commons-maven/uber-pom</url>
> </scm>
> Then after executing release:prepare, the pom in CVS looks like this (new <tag> tag is only difference):
> <scm>
> 	<connection>${base.cvs.url}:commons-maven/uber-pom</connection>
> 	<developerConnection>${base.cvs.url}:commons-maven/uber-pom</developerConnection>
> 	<url>${base.viewcvs.url}/commons-maven/uber-pom</url>
> 	<tag>R-1_7</tag>
> </scm>
> Then after executing release:perform, the pom looks like this in CVS:
> <scm>
> 	<connection>scm:cvs:pserver:behrcvs.masco-coatings.com:/usr/cvsroot:commons-maven/uber-pom</connection>
> 	<developerConnection>scm:cvs:pserver:behrcvs.masco-coatings.com:/usr/cvsroot:commons-maven/uber-pom</developerConnection>
> 	<url>http://behrcvs.masco-coatings.com/cgi-bin/viewcvs.cgi/commons-maven/uber-pom</url>
> </scm>
> Notice that the properties that were there for the base URLs for CVS and ViewCVS have been replaced with literal values. 
> No other properties in the POM are being replaced

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira