You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hervé Boutemy (JIRA)" <ji...@apache.org> on 2018/04/03 22:47:00 UTC
[jira] [Commented] (MSITE-816) Generated links in index.html are
wrong while using a property in distributionManagement (site)
[ https://issues.apache.org/jira/browse/MSITE-816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16424707#comment-16424707 ]
Hervé Boutemy commented on MSITE-816:
-------------------------------------
${distributionManagement.site} is interpolated as ${project.distributionManagement.site} which is an instance of org.apache.maven.model.Site
just rename the variable to a name that does not exist in ${project} and everything should be fine
> 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
> Priority: Critical
>
> 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)