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

releasing flat multi-module projects using git

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.1
    • 2.5
    • prepare
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: