maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hervé Boutemy (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 Sun, 09 Aug 2015 11:45:46 GMT


Hervé Boutemy commented on MPIR-234:

I'm thinking at this for a long time now, here is where I am for now:

First, the simplest idea: we can add easily in core a list of scms that don't require adding
artifactId to scm connection and developerConnection (AFAIK, url is always expected to add
artifactId): if the list is in a resource file, one can later add another file to extend the

But if we do so, the scm.connection does not contain information about the path in scm: that's
unfortunate, since I'm sure this would be useful for any tooling wanting to use data (like
Perhaps it would be better to extend git scm url: currently, it is documented in
as {{scm:git:git://server_name[:port]/path_to_repository}} (other forms are similar)
if we extend it to {{scm:git:git://server_name[:port]/path_to_repository:path_in_repository}},
we can keep path info for tooling
and magically, the simple "add artifactId to path" algorithm is back to be a good algorithm


the feature request for directoryname != artifactId is a feature request that would just complement
the algorithm: once someone finds an algorithm that can detect the path when not equals parent+artifactId
and not during build (where current directory helps) but during resolution from repo, this
will be ok
notice: perhaps flatten-maven-plugin can help us on this by expanding directory during install

> 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