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

release:branch doesn't update branch scm url

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 2.5.2
    • None
    • branch, scm
    • None

    Description

      Using maven 3.3.3

      Here is the scm part of my project:

      <scm>
          <connection>scm:javasvn:http://url.com/repo/myProject/trunk</connection>
          <developerConnection>scm:javasvn:http://url.com/repo/myProject/trunk</developerConnection>
          <url>http://url.com/repo/myProject/trunk</url>
      </scm>
      

      I run:

      mvn release:branch -DbranchName=myBranch
      

      It creates successfully the branch here:

      http://url.com/repo/myProject/branches/myBranch
      

      But when I look into the pom.xml of this branch, the "scm" part remains the same as the trunk:

      <scm>
          <connection>scm:javasvn:http://url.com/repo/myProject/trunk</connection>
          <developerConnection>scm:javasvn:http://url.com/repo/myProject/trunk</developerConnection>
          <url>http://url.com/repo/myProject/trunk</url>
      </scm>
      

      Documentation:

      Transform the SCM information in the POM to include the final destination of the tag

      So why the pom.xml of my branch isn't transformed?

      Edit with logs:

      [INFO] ------------------------------------------------------------------------
      [INFO] Building myProject 1.2.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- maven-release-plugin:2.5.2:branch (default-cli) @ myProject ---
      [INFO] Verifying that there are no local modifications...
      [INFO]   ignoring changes on: **\release.properties, **\pom.xml.next, **\pom.xml.releaseBackup, **\pom.xml.backup, **\pom.xml.branch, **\pom.xml.tag
      [INFO] SVN status directory: D:\Projects\myProject
      [INFO] Transforming 'myProject'...
      [INFO] Checking in modified POMs...
      [INFO] SVN commit directory: D:\Projects\myProject
      [INFO] Branching release with the label null...
      [INFO] Transforming 'myProject'...
      [INFO] Checking in modified POMs...
      [INFO] SVN commit directory: D:\Projects\myProject
      [INFO] Release preparation complete.
      [INFO] Cleaning up after release...
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] myProject ......................................... SUCCESS [  4.619 s]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 5.602 s
      [INFO] Finished at: 2015-09-14T09:39:06+02:00
      [INFO] Final Memory: 28M/328M
      [INFO] ------------------------------------------------------------------------
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jpfroud Jean-Pierre Froud
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: