maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <>
Subject [jira] [Commented] (MPIR-234) SCM-link in site of multimodule projects should not append module name by default (at least for git)
Date Fri, 14 Aug 2015 19:52:46 GMT


Robert Scholte commented on MPIR-234:

I really wonder if we should call it a URL. IMHO it is a connection String, the scmSpecific
part is not unified. 

We should question: what does the scm section contain and where is it used for? Git is an
example where in doesn't only contain the location, but it can also contain fetch+push information.
So here it also contains the release strategy.

Let's assume that we want to construct the connection, because for some SCMs it makes more
sense to add it somewhere in the middle (e.g. the connection uses an additional arguments
like [h2|])
We would need to use as extensions, which I don't like for Maven core.

So what do we gain by inheriting + expanding it for modules: reports are much better in creating
proper instructions. I still think it has introduced too much complexity for the effective
pom for modules which doesn't add true value.

"So the question becomes what do we put on the Source Repository page for a module without
an explicit <scm> section."

We don't. Either N/A or See Root SCM URL. 
I'd say: leave it up to the SCM implementation, they know the best answer. IIRC with SoftwareAG
the SCM and IDE are that much integrated with each other that it doesn't make sense to try
to access it on filesystem.

> SCM-link in site of multimodule projects should not append module name by default (at
least for git)
> ----------------------------------------------------------------------------------------------------
>                 Key: MPIR-234
>                 URL:
>             Project: Maven Project Info Reports Plugin
>          Issue Type: Bug
>          Components: scm
>    Affects Versions: 2.4
>            Reporter: Mirko Friedenhagen
> I have setup a simple multi module project (see
which uses git on github as {{scm}}. While rendering the site, MPIR will by default add the
name of the module to the SCM-URLs in source-repository.html. So instead of
I see,
and git:// in the report for the core
module. All these URLs are invalid. For SVN this could be assumed to be the right behaviour,
for git and probably other SCMs this is not true. As a workaround I have to reconfigure the
scm section (see
in the modules like this:
> {code:xml}
> <scm>
>   <connection>${project.parent.scm.connection}</connection>
>   <developerConnection>${project.parent.scm.developerConnection}</developerConnection>
>   <url>${project.parent.scm.url}</url>
> </scm>
> {code}

This message was sent by Atlassian JIRA

View raw message