> Brett Porter wrote:
> > > http://jira.codehaus.org/browse/SCM-581
> >  It isn't clear from the issue whether this is in the SCM provider
> >  (which is independent of Maven releases), or in Maven (in which case
> >  this is filed in the wrong place).

I think I've actually tracked it down now, to the DefaultUrlNormalizer class
in the module maven-model-builder, that indeed is a part of maven-core.

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.

It is also here somewhere I'm lost in the maze of maven-core again, sorry I
can't pinpoint the issue better!

-- 
Fredrik Jonson


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to