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

Bad modules links in 'index/modules' reports when 'distributionManagement.site.url' comes from settings.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.9
    • 3.0.0
    • index, modules
    • Patch

    Description

      When the distributionManagement.site.url contains a property filled in settings.xml like :

      pom.xml :

          <distributionManagement>
              <site>
                  <id>projectSite</id>
                  <url>${sitePublishLocation}/foo/${project.artifactId}</url>
              </site>
          </distributionManagement>
      

      settings.xml:

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <settings ...>
          <profiles>
              <profile>
                  <id>site-location</id>
                  <properties>
                      <sitePublishLocation>file://tmp/sitePublish</sitePublishLocation>
                  </properties>
              </profile>
          </profiles>
          <activeProfiles>
              <activeProfile>site-location</activeProfile>
          </activeProfiles>
      </settings>
      

      The modules links in index report contain

      ${sitePublishLocation}
      

      Problem can be reproduced with variableSettingsIndexReport.zip project (dependencies required : maven-site-plugin 3.6-SNAPSHOT & doxia-integration-tools 1.7.2-SNAPSHOT).

      This command fails:

      mvn site -s settings-site-location.xml
      

      This command works:

      mvn site -s settings-site-location.xml -DsitePublishLocation="/tmp/sitePublish"
      

      The root cause is explained in MSITE-783 and fixed by DOXIASITETOOLS-166.

      Attachments

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              axel3rd Alix Lourme
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: