Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-783

Bad modules links when 'distributionManagement.site.url' comes from settings.xml

    XMLWordPrintableJSON

Details

    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 link menu in target/site/index.html are not interpolated:

      ../../../../${sitePublishLocation}/foo/test-module-hierarchical/index.html
      

      Problem can be reproduced with variableSettingsSubLinkMenu.zip project.

      This command fails:

      mvn site -s settings-site-location.xml
      

      This command works:

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

      Probably a link with MSITE-604, but the v3.5 doesn't fix this problem.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: