Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6159

Child path adjustments break git scm urls

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.6.1
    • None
    • None
    • Patch

    Description

      While child path adjustments make sense for some scms, child path
      adjustment break git scm urls.

      Consider a parent project Foo which is available at http://github.com:ExampleOrg/Foo and uses

      [...]
      <developerConnection>scm:git:git@github.com:ExampleOrg/${project.artifactId}.git</developerConnection>
      [...]

      If a project Bar in the repo at http://github.com:ExampleOrg/Bar uses Foo as parent and inherits <developerConnection>, it ends up with the value

      scm:git:git@github.com:ExampleOrg/${project.artifactId}.git/Foo

      which is not usable due to the child path adjustment.

      While this bit us, we're not alone. Looking at the reported URLs, child path adjustments for git scm urls are also caused issues in these places:

      https://github.com/vorburger/MariaDB4j/issues/43
      https://gist.github.com/escowles/f46d158cdaf955e34282
      http://transcripts.jboss.org/channel/irc.freenode.org/%23aerogear/2014/%23aerogear.2014-07-03.log.html (search for "not a valid repository name")

      Attachments

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              caistleitner-selerity Christian Aistleitner
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: