Issue Details (XML | Word | Printable)

Key: MSITE-297
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Unassigned
Reporter: Ramon Havermans
Votes: 6
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Maven 2.x Site Plugin

Child site.xml not used from parent + inheritance

Created: 15/Feb/08 05:27 AM   Updated: 07/Jun/08 05:19 AM   Resolved: 07/Jun/08 05:19 AM
Component/s: multi module
Affects Version/s: 2.0-beta-6
Fix Version/s: None

Time Tracking:
Not Specified

Issue Links:
Duplicate
 
Related
 


 Description  « Hide

When using a parent child project building from the parent, the child site.xml is not used. Instead I get the parent lay-out with menu's I don't want and links that won't work.



Ramon Havermans added a comment - 15/Feb/08 06:28 AM

Another problem is that the content (dependencies) in the modules are wrong (I think they are from the parent).

Switching back to 2.0-beta-5 did resolve the issue, but at that version siteDirectory doens't work.


Ramon Havermans added a comment - 15/Feb/08 06:45 AM

Forget the last comment, was doing something wrong


Ramon Havermans added a comment - 15/Feb/08 06:50 AM

To reproduce:

  • Make parent
    • Make parent site.xml
    • Give parent his own menu (ParentMenu)
  • Make child
    • Make child site.xml
    • give child own menu (ChildMenu)

If you do a mvn site-deploy and look at the child it will have a ParentMenu which you don't want and it doen't have a ChildMenu which you do want.


Rodrigo Ruiz added a comment - 22/Apr/08 09:23 AM

This is a very annoying one. In one of my multi-module projects, with 5 child projects I have to do:

[at parent] mvn site site:deploy
[at child 1] mvn clean site site:deploy
...
[at child 5] mvn clean site site:deploy

Each sub-project has its own unit and integration testsuites, and the sites include cobertura and findbugs reports, which make the process of deploying a site extremely slow.


Martin Burger added a comment - 19/May/08 09:20 AM

Duplicate of MSITE-262 and MSITE-293?

I have similar problems with 2.0-beta-6 and current 2.0-beta-7-SNAPSHOT from SVN (Revision: 657789). In 2.0-beta-5 the children's site.xml is respected, but in the other versions it is completely ignored: All menus defined in parent POM are shown in submodules (but should not). Furthermore, all other tags like bannerLeft and poweredBy are not overwritable in submodule's POM.