[
https://issues.apache.org/jira/browse/MPIR-349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15534140#comment-15534140
]
ASF GitHub Bot commented on MPIR-349:
-------------------------------------
GitHub user axel3rd opened a pull request:
https://github.com/apache/maven-plugins/pull/93
[MPIR-349] Bad modules links in 'index/modules' report when
'distributionManagement.site.url' comes from settings.xml
Detail : [MPIR-349](https://issues.apache.org/jira/browse/MPIR-349)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/axel3rd/maven-plugins MPIR-349
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/maven-plugins/pull/93.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #93
----
commit 99553a6d2053cd8448f807f218f81117baa3d3b5
Author: Alix Lourme <[email protected]>
Date: 2016-09-29T21:40:05Z
[MPIR-349] Bad modules links in 'index/modules' reports when
'distributionManagement.site.url' comes from settings.xml
----
> Bad modules links in 'Index' report when 'distributionManagement.site.url'
> comes from settings.xml
> --------------------------------------------------------------------------------------------------
>
> Key: MPIR-349
> URL: https://issues.apache.org/jira/browse/MPIR-349
> Project: Maven Project Info Reports Plugin
> Issue Type: Bug
> Components: index
> Affects Versions: 2.9
> Reporter: Alix Lourme
> Labels: features
> Fix For: 2.10
>
> Attachments: variableSettingsIndexReport.zip
>
>
> When the _distributionManagement.site.url_ contains a property filled in
> _settings.xml_ like :
> _pom.xml_ :
> {code}
> <distributionManagement>
> <site>
> <id>projectSite</id>
> <url>${sitePublishLocation}/foo/${project.artifactId}</url>
> </site>
> </distributionManagement>
> {code}
> _settings.xml_:
> {code}
> <?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>
> {code}
> The modules links in *index* report contain
> {code}
> ${sitePublishLocation}
> {code}
> Problem can be reproduced with [^variableSettingsIndexReport.zip] project
> (dependencies required : [maven-site-plugin
> 3.6-SNAPSHOT|http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-site-plugin]
> & [doxia-integration-tools
> 1.7.2-SNAPSHOT|https://svn.apache.org/repos/asf/maven/doxia/doxia-sitetools/trunk/]).
> This command fails:
> {code}
> mvn site -s settings-site-location.xml
> {code}
> This command works:
> {code}
> mvn site -s settings-site-location.xml
> -DsitePublishLocation="/tmp/sitePublish"
> {code}
> The root cause is explained in MSITE-783 and fixed by DOXIASITETOOLS-166.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)