jira-importer commented on issue #793:
URL: https://github.com/apache/maven-scm/issues/793#issuecomment-2964624410

   **[Fredrik 
Jonson](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=fredrikj)** 
commented
   
   The bug is in the DefaultUrlNormalizer class in the module 
maven-model-builder, that is a part of maven-core, not maven-scm-plugin or the 
scm hg provider.
   
   The DefaultUrlNormalizer does the following to the element scm/connection:
   
   result = result.replaceAll( "(?<![:/])/+", "/" );
   
   Which removes any double slash after the hostname part of a url.
   
   The normalization occurs when the release plugin doesn't find a ScmSourceUrl 
in the plugin descriptor. Instead MavenProject.getScm().getConnection() is used 
to retrieve a scm url. When that method returns the scm connection url is 
"normalized" and that all so important double slash is removed.
   
   See discussion here: 
http://news.gmane.org/gmane.comp.jakarta.turbine.maven.devel/98099
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to