You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stephen Colebourne (JIRA)" <ji...@codehaus.org> on 2013/06/03 15:44:03 UTC
[jira] (MPIR-279) Wrong hyperlinks on index and modules page
Stephen Colebourne created MPIR-279:
---------------------------------------
Summary: Wrong hyperlinks on index and modules page
Key: MPIR-279
URL: https://jira.codehaus.org/browse/MPIR-279
Project: Maven 2.x Project Info Reports Plugin
Issue Type: Bug
Components: modules
Affects Versions: 2.7
Reporter: Stephen Colebourne
Attachments: OG-Platform2.zip
The attached zip is a complete multi-module build with the bug exposed. Run using "mvn clean site site:stage" to reproduce.
What is observed is that the navigation hyperlinks in the top left (added by the site plugin) are correctly defined as "target/staging/og-timeseries/index.html", whereas the hyperlinks in the middle of index.html and modules.html are incorrectly defined as "target/staging/projects/og-timeseries/index.html" - note the incorrect extra "projects".
The problem will occur because the child projects in the multi-module build are not immediate children of the parent/aggregator. Instead the structure is:
{code}
platform
- pom.xml
- projects
- og-timeseries
- pom.xml
{code}
The extra layer is being handled by the site plugin (by referring to the "distributionManagement.site.url"). It is not handled by this plugin.
As a side note, if "distributionManagement.site.url" is NOT set in the child projects, then the site will build consistently using "target/staging/projects/og-timeseries/index.html" everywhere.
This is no doubt related to MPIR-273.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira