Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: maven-doxia-tools-1.0
-
Component/s: maven-doxia-tools
-
Labels:None
-
Environment:Maven 2.0.8, JDK 1.5.0_12, WinXP
-
Number of attachments :
Description
After updating to 2.0-beta-6, I never get proper site output for multi module projects. I attached a simple dummy project that shall help to reproduce the problem.
When I perform a reactor build of the site (i.e. "project-parent> mvn site"), the pages of the sub module project-module-1 properly inherit most of the decorator elements, except for the custom "overview" menu. That is, the site of the sub module contains the menu configured for the parent project despite the sub module specifying its own menu.-
In contrast, when I only build the site of the sub module (i.e. "project-module-1> mvn site"), many decoration elements are not inherited from the parent's site.xml like <version>, <bannerRight>, <skin>, <links>. However, now the sub module's site properly outputs its own menu items (i.e. "Module-Item" instead of "Parent-Item" for the attached projects).
This issues might be a duplicate/relative of MSITE-256 but as I cannot safely judge from its description, I opened a new issue.
Attachments
Issue Links
| This issue relates to: | ||||
| MSITE-262 | site.xml not inherited if build run from parent |
|
|
|
| MSITE-297 | Child site.xml not used from parent + inheritance |
|
|
|
| This issue is related to: | ||||
| MSITE-270 | site.xml: menus inherited that should not |
|
|
|
| MSITE-91 | "src/site/site.xml" hardcoded in AbstractSiteMojo.java |
|
|
|
| This issue supercedes: | ||||
| MSITE-245 | parent filesystem site.xml is never be found |
|
|
|
The fix for
MSITE-91in r473599 was the cause for this issue, more precisely the following lines from getSiteDescriptorFile():The METHOD parameter "basedir" may refer to an ancestor project while the MOJO parameter siteDirectory always refers to the currently executed sub project. And just to bring in another directory, the final path siteDescriptor is setup using a relative path which gets resolved against the user's current working directory which might be anything (though usually the root of a reactor build).
MSITE-91in r473599 was the cause for this issue, more precisely the following lines from getSiteDescriptorFile():