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

releasing flat multi-module projects using git

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.5
    • Component/s: prepare
    • Labels:
      None
    • Environment:

      Description

      When releasing a project as follows:

      ./parent/pom.xml
      ./module-a/pom.xml
      ./module-b/pom.xml

      From the parent directory, with an scm config in the parent pom.xml (only) as follows:

      <scm>
      <connection>scm:git:ssh://github.com/repox.git</connection>
      <developerConnection>scm:git:ssh://github.com/repox.git</developerConnection>
      <tag>master</tag>
      <url>https://github.com/view/repox.git</url>
      </scm>

      In org/apache/maven/shared/release/util/ReleaseUtils.java:182 it does this indiscriminately:

      url = realignScmUrl( parentLevels, url );

      This will trim the repo url from 'ssh://github.com/repox.git' -> 'ssh://github.com', which will cause a failure when pushing the tag.

      This type of realignment is not appropriate when using a git scm type.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                struberg Mark Struberg
                Reporter:
                jnorris10@gmail.com Jeremy Norris
              • Votes:
                4 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: