[ 
http://jira.codehaus.org/browse/MRELEASE-381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olivier Lamy closed MRELEASE-381.
---------------------------------

    Resolution: Fixed

> url syntax not good enough for the git scm provider
> ---------------------------------------------------
>
>                 Key: MRELEASE-381
>                 URL: http://jira.codehaus.org/browse/MRELEASE-381
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: scm
>    Affects Versions: 2.0-beta-7
>            Reporter: Torsten Curdt
>            Assignee: Olivier Lamy
>            Priority: Blocker
>             Fix For: 2.0-beta-9
>
>
> 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:
> {code}git clone git://github.com/olamy/scm-git-test-one-module.git{code}
> normal anonymous relative:
> {code}git clone git://github.com:olamy/scm-git-test-one-module.git{code}
> normal developer absolute:
> {code}git clone ssh://g...@github.com/olamy/scm-git-test-one-module.git{code}
> normal developer relative:
> {code}git clone ssh://g...@github.com/~git/olamy/scm-git-test-one-module{code}
> ssh developer absolute:
> {code}git clone g...@github.com/olamy/scm-git-test-one-module.git{code}
> ssh developer relative:
> {code}git clone g...@github.com:olamy/scm-git-test-one-module{code}
> In reality the ssh:// URL is not always supported. (For example github does 
> not). In fact they suggest to use
> normal anonymous absolute:
> {code}git://github.com/olamy/scm-git-test-one-module.git{code}
> ssh developer relative:
> {code}...@github.com:olamy/scm-git-test-one-module.git{code}
> For the initial checkout the developer will use the command line and set 
> "g...@github.com:olamy/scm-git-test-one-module.git" 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://g...@github.com/~git/olamy/scm-git-test-one-module" (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 
> "g...@github.com:olamy/scm-git-test-one-module" in the pom. The problem is 
> that the POM expects the normal (RFC 2396) format AFAIU.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to