Maven 2.x and 3.x Site Plugin

Child site.xml not used from parent + inheritance

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 2.0-beta-6
  • Fix Version/s: None
  • Component/s: multi module
  • Labels:
    None
  • Number of attachments :
    0

Description

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.

Issue Links

Activity

Hide
Ramon Havermans added a comment -

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.

Show
Ramon Havermans added a comment - 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.
Hide
Ramon Havermans added a comment -

Forget the last comment, was doing something wrong

Show
Ramon Havermans added a comment - Forget the last comment, was doing something wrong
Hide
Ramon Havermans added a comment -

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.

Show
Ramon Havermans added a comment - 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.
Hide
Rodrigo Ruiz added a comment -

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.

Show
Rodrigo Ruiz added a comment - 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.
Hide
Martin Burger added a comment -

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.

Show
Martin Burger added a comment - 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.

People

Vote (6)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: