Description
When the distributionManagement.site.url contains a property filled in settings.xml like :
pom.xml :
<distributionManagement> <site> <id>projectSite</id> <url>${sitePublishLocation}/foo/${project.artifactId}</url> </site> </distributionManagement>
settings.xml:
<?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>
The modules links in index report contain
${sitePublishLocation}
Problem can be reproduced with variableSettingsIndexReport.zip project (dependencies required : maven-site-plugin 3.6-SNAPSHOT & doxia-integration-tools 1.7.2-SNAPSHOT).
This command fails:
mvn site -s settings-site-location.xml
This command works:
mvn site -s settings-site-location.xml -DsitePublishLocation="/tmp/sitePublish"
The root cause is explained in MSITE-783 and fixed by DOXIASITETOOLS-166.
Attachments
Attachments
Issue Links
- depends upon
-
DOXIASITETOOLS-166 use reactor project instead of re-reading POMs for modules menu
- Closed
- relates to
-
MSITE-783 Bad modules links when 'distributionManagement.site.url' comes from settings.xml
- Closed
- links to