Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-128

SCM properties being replaced during release:perform

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 2.3
    • prepare
    • Windows XP client, Linux repo, CVS, Maven 2.0.4
    • Patch

    Description

      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

      Attachments

        1. after-release-perform-pom.xml
          4 kB
          Craig S. Dickson
        2. after-release-prepre-pom.xml
          3 kB
          Craig S. Dickson
        3. MNG-128-maven-release-manager.patch
          3 kB
        4. MRELEASE-128_cvs_hack_RewritePomsForDevelopmentPhase.java.patch
          1 kB
        5. original-pom.xml
          3 kB
          Craig S. Dickson

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              craigsdickson Craig S. Dickson
              Votes:
              74 Vote for this issue
              Watchers:
              48 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: