Karl Heinz Marbaise created MSITE-816:
-----------------------------------------

             Summary: Generated links in index.html are wrong while using a 
property in distributionManagement (site)
                 Key: MSITE-816
                 URL: https://issues.apache.org/jira/browse/MSITE-816
             Project: Maven Site Plugin
          Issue Type: Bug
    Affects Versions: 3.7
         Environment: C:\...\trunk>mvn --version
Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 
2018-02-24T20:49:05+01:00)
Maven home: C:\...\apache-maven-3.5.3\bin\..
Java version: 1.8.0_72, vendor: Oracle Corporation
Java home: C:\...\jdk1.8.0_72\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
            Reporter: Karl Heinz Marbaise


I have a multi module build which contains several modules furthermore I have a 
{{settings.xml}} which contains a property 
{{<distributionManagement.site>file:///C:/Users/Public/site/</distributionManagement.site>}}
which I use in distributionManagement of my pom file...like this:
{code:xml}
                <site>
                        <id>sites</id>
                        <url>${distributionManagement.site}</url>
                </site>
{code}
Now I generate a site via
{{mvn site-deploy}} or {{mvn site site:stage}} will result in the same.

I get links generated in the {{index.html}} document which look like this:

{code}
<th>Description</th></tr>
<tr class="b">
<td><a 
href="..\..\..\..\..\org.apache.maven.model.Site@1f64b2a\defaults-spring-boot-parent/index.html">defaults-spring-boot-parent</a></td>
<td>Defaults Parent for Spring Boot Applications</td></tr>
<tr class="a">
<td><a 
href="..\..\..\..\..\org.apache.maven.model.Site@b63dc8\default-scripts/index.html">default-scripts</a></td>
<td>Defaults Parent for Script projects.</td></tr>
<tr class="b">
<td><a 
href="..\..\..\..\..\org.apache.maven.model.Site@c13984\scripts-descriptor/index.html">scripts-descriptor</a></td>
<td>Assembly descriptor for scripts project.</td></tr></table></div></div>
      </div>
{code}

If I replace the entry in distributionManagement with an URL without any 
property:

{code:xml}
                <site>
                        <id>sites</id>
                        <url>file:///C:/site/</url>
                </site>
{code}
The links are generated correctly...




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to