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

Hudson commented on MPIR-349:
-----------------------------

SUCCESS: Integrated in Jenkins build maven-plugins #7327 (See 
[https://builds.apache.org/job/maven-plugins/7327/])
[MPIR-349] fixed module links when data comes from settings.xml: use project 
from reactor instead of (wrongly) building it
Submitted by: Alix Lourme
applied with little formatting fixes (hboutemy: 
[http://svn.apache.org/viewvc/?view=rev&rev=1763031])
* (edit) maven-project-info-reports-plugin/pom.xml
* (add) maven-project-info-reports-plugin/src/it/MPIR-349
* (add) maven-project-info-reports-plugin/src/it/MPIR-349/module-flat
* (add) maven-project-info-reports-plugin/src/it/MPIR-349/module-flat/pom.xml
* (add) maven-project-info-reports-plugin/src/it/MPIR-349/parent
* (add) 
maven-project-info-reports-plugin/src/it/MPIR-349/parent/invoker.properties
* (add) 
maven-project-info-reports-plugin/src/it/MPIR-349/parent/module-hierarchical
* (add) 
maven-project-info-reports-plugin/src/it/MPIR-349/parent/module-hierarchical/pom.xml
* (add) maven-project-info-reports-plugin/src/it/MPIR-349/parent/pom.xml
* (add) maven-project-info-reports-plugin/src/it/MPIR-349/parent/verify.groovy
* (edit) maven-project-info-reports-plugin/src/it/settings.xml
* (edit) 
maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/AbstractProjectInfoReport.java
* (edit) 
maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/IndexReport.java
* (edit) 
maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ModulesReport.java
* (edit) 
maven-project-info-reports-plugin/src/test/java/org/apache/maven/report/projectinfo/ModulesReportTest.java
* (add) 
maven-project-info-reports-plugin/src/test/java/org/apache/maven/report/projectinfo/stubs/ModulesVariableSettingInterpolationStub.java
* (add) 
maven-project-info-reports-plugin/src/test/java/org/apache/maven/report/projectinfo/stubs/SettingsSitePublishVariableStub.java
* (add) 
maven-project-info-reports-plugin/src/test/resources/plugin-configs/modules-variable-settings-interpolated-plugin-config.xml
* (add) 
maven-project-info-reports-plugin/src/test/resources/plugin-configs/subproject-site-url
* (add) 
maven-project-info-reports-plugin/src/test/resources/plugin-configs/subproject-site-url/pom.xml


> Bad modules links in 'index/modules' reports 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, modules
>    Affects Versions: 2.9
>            Reporter: Alix Lourme
>              Labels: features
>             Fix For: 2.10
>
>         Attachments: MPIR-349-maven-project-info-reports-plugin.patch, 
> 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)

Reply via email to