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

Wrong hyperlinks on index and modules page

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.8
    • modules
    • None

    Description

      The attached zip is a complete multi-module build with the bug exposed. Run using "mvn clean site site:stage" to reproduce.

      What is observed is that the navigation hyperlinks in the top left (added by the site plugin) are correctly defined as "target/staging/og-timeseries/index.html", whereas the hyperlinks in the middle of index.html and modules.html are incorrectly defined as "target/staging/projects/og-timeseries/index.html" - note the incorrect extra "projects".

      The problem will occur because the child projects in the multi-module build are not immediate children of the parent/aggregator. Instead the structure is:

      platform
       - pom.xml
       - projects
         - og-timeseries
           - pom.xml
      

      The extra layer is being handled by the site plugin (by referring to the "distributionManagement.site.url"). It is not handled by this plugin.

      As a side note, if "distributionManagement.site.url" is NOT set in the child projects, then the site will build consistently using "target/staging/projects/og-timeseries/index.html" everywhere.

      This is no doubt related to MPIR-273.

      Attachments

        1. OG-Platform2.zip
          18 kB
          Stephen Colebourne

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              scolebourne2 scolebourne2
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: