Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Auto Closed
-
2.4
-
None
-
None
Description
I have setup a simple multi module project (see https://github.com/mfriedenhagen/multi-module-sample/tree/multi-site-complex) 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 https://github.com/mfriedenhagen/multi-module-sample/ I see https://github.com/mfriedenhagen/multi-module-sample/core/, git@github.com:mfriedenhagen/multi-module-sample.git/core and git://github.com/mfriedenhagen/multi-module-sample.git/core 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 https://github.com/mfriedenhagen/multi-module-sample/blob/multi-site-complex/core/pom.xml) in the modules like this:
<scm> <connection>${project.parent.scm.connection}</connection> <developerConnection>${project.parent.scm.developerConnection}</developerConnection> <url>${project.parent.scm.url}</url> </scm>
Attachments
Issue Links
- depends upon
-
MNG-3244 inherited site url not properly handling parameters
- Closed
- duplicates
-
MPIR-290 improve git support: remove directory info (after '.git') for "git clone"
- Closed
- is duplicated by
-
SCM-801 Correct SCM URLs mangled in children
- Open
- is related to
-
SCM-800 scm connection, developerConnection and url add artifactId at the end when they are inherited.
- Open
-
MNG-5870 Effective pom should not inherit SCM
- Open
-
MNG-5951 add an option to avoid path addition to inherited URLs
- Closed
-
MPIR-332 don't warn when removing path from git scm url
- Closed
-
MNG-5878 add support for module name != artifactId in every calculated URLs (project, SCM, site): special project.directory property
- Closed