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

release:prepare mojo corrupts ${} variable reference in the <scm> tag

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0-beta-7
    • None
    • prepare
    • windows-xp
      maven 2.1.0
      cvs

    Description

      We have a parent pom which is used for inheritance. We would like the <scm> tag to be inherited by child projects (not modules) and have entered the following.

      <scm>
          <connection>scm:cvs:ext:myhost:/repository:Projects/${project.artifactId}</connection>
      </scm>
      

      The problems is that the ${project.artifactId} variable is expanded during the release:prepare operation. It appears to happen in the writing of the next snapshot release version of the pom. i.e. The released pom (1.0) still contains the variable reference but new snapshot version (1.1-SNAPSHOT) has the expanded value. e.g...

      <scm>
          <connection>scm:cvs:ext:myhost:/repository:Projects/myArtifactId</connection>
      </scm>
      

      This forces us to place the scm tag in all child poms which we'd prefer not to do.

      cheers

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              woodfora Andrew Woodford
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: