Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.5.1
-
None
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 link menu in target/site/index.html are not interpolated:
../../../../${sitePublishLocation}/foo/test-module-hierarchical/index.html
Problem can be reproduced with variableSettingsSubLinkMenu.zip project.
This command fails:
mvn site -s settings-site-location.xml
This command works:
mvn site -s settings-site-location.xml -DsitePublishLocation="/tmp/sitePublish"
Probably a link with MSITE-604, but the v3.5 doesn't fix this problem.
Attachments
Attachments
Issue Links
- depends upon
-
DOXIASITETOOLS-166 use reactor project instead of re-reading POMs for modules menu
- Closed
- is related to
-
MPIR-349 Bad modules links in 'index/modules' reports when 'distributionManagement.site.url' comes from settings.xml
- Closed
- relates to
-
MSITE-604 Properties from settings.xml are not recognized in site distribution management
- Closed