Maven SCM
  1. Maven SCM
  2. SCM-428

url syntax not good enough for the git scm provider


    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2
    • Component/s: maven-scm-provider-git
    • Labels:


      The problem is that git supports 2 different URL schemes. For the normal RFC 2396 standard and ssh style. So in theory all these styles should work:

      normal anonymous absolute:

      git clone git://

      normal anonymous relative:

      git clone git://

      normal developer absolute:

      git clone ssh://

      normal developer relative:

      git clone ssh://

      ssh developer absolute:

      git clone

      ssh developer relative:

      git clone

      In reality the ssh:// URL is not always supported. (For example github does not). In fact they suggest to use

      normal anonymous absolute:


      ssh developer relative:

      For the initial checkout the developer will use the command line and set "" as the remote address. So subsequent commits and tags (from the plugin) can work just fine as the URL does not need to be specified anymore. But when the release plugin checks out the code it will fail if the proper developer url "ssh://" (normal developer relative) is set. (As the maven pom seems to expect that format).

      There are 3 ways to fix or work around this:

      1) Use the normal anonymous URLs for both connections (developer and anonymous) inside the pom. This will confused developers though as the generated site tells the new developers to use the anonymous URL to checkout the code. They will not be able to push if they do.

      2) Have the scm/release plugin ignore the developer URL and use the anonymous URL for the checkout. Again this will be confusing on the generated site as the normal developer rel/abs URLs might not be supported.

      3) Somehow store the URL in the format "" in the pom. The problem is that the POM expects the normal (RFC 2396) format AFAIU.

        Issue Links


          Olivier Lamy (*$^¨%`£) created issue -
          Olivier Lamy (*$^¨%`£) made changes -
          Field Original Value New Value
          Issue Type Bug [ 1 ] Improvement [ 4 ]
          Component/s scm [ 12698 ]
          Affects Version/s 1.1 [ 13984 ]
          Key MRELEASE-384 SCM-428
          Affects Version/s 2.0-beta-7 [ 13560 ]
          Component/s maven-scm-provider-git [ 12667 ]
          Project Maven 2.x Release Plugin [ 11144 ] Maven SCM [ 10527 ]
          Fix Version/s 2.0-beta-9 [ 14682 ]
          Fix Version/s 1.1.1 [ 14522 ]
          Complexity Intermediate
          Olivier Lamy (*$^¨%`£) made changes -
          Link This issue is depended upon by MRELEASE-381 [ MRELEASE-381 ]
          Olivier Lamy (*$^¨%`£) made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 12:22:36 UTC 2015 [ 1428236556206 ]
          Mark Thomas made changes -
          Workflow jira [ 12725439 ] Default workflow, editable Closed status [ 12757874 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 01:08:37 UTC 2015 [ 1428282517778 ]
          Mark Thomas made changes -
          Workflow jira [ 12962976 ] Default workflow, editable Closed status [ 12999766 ]


            • Assignee:
              Olivier Lamy (*$^¨%`£)
              Olivier Lamy (*$^¨%`£)
            • Votes:
              0 Vote for this issue
              2 Start watching this issue


              • Created: