maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hervé Boutemy (JIRA) <j...@apache.org>
Subject [jira] [Commented] (MSITE-816) Generated links in index.html are wrong while using a property in distributionManagement (site)
Date Wed, 04 Apr 2018 22:17:00 GMT

    [ https://issues.apache.org/jira/browse/MSITE-816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16426249#comment-16426249
] 

Hervé Boutemy commented on MSITE-816:
-------------------------------------

please provide a test project
and did you try to just rename the property name? distributionManagement.site is a bad idea:
just change it to distributionManagement_site and I can tell you that it never will be interpolated
as org.apache.maven.model.Site@b63dc8

> 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)

Mime
View raw message