Uploaded image for project: 'Maven Project Info Reports Plugin'
  1. Maven Project Info Reports Plugin
  2. MPIR-234

SCM-link in site of multimodule projects should not append module name by default (at least for git)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • 2.4
    • None
    • scm
    • 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

          Activity

            People

              Unassigned Unassigned
              mfriedenhagen Mirko Friedenhagen
              Votes:
              3 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: