Maven 2.x and 3.x Site Plugin

site.xml not inherited if build run from parent

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0-beta-6
  • Fix Version/s: 2.0-beta-7
  • Component/s: inheritance
  • Labels:
    None
  • Number of attachments :
    1

Description

I've seen that the site.xml is not being inherited in a module when the build is run from the parent - when run from the module itself the inheritance works correctly.

Issue Links

Activity

Hide
Dennis Lundberg added a comment -

Can you provide us with an example of this? Preferably a complete project with pom.xml and site.xml files.

Show
Dennis Lundberg added a comment - Can you provide us with an example of this? Preferably a complete project with pom.xml and site.xml files.
Hide
Cameron Jones added a comment - - edited

Here's a project which displays the behavior. If run from the parent as a recursive build the module's site menu doesn't contain the inherited parent menu.

Show
Cameron Jones added a comment - - edited Here's a project which displays the behavior. If run from the parent as a recursive build the module's site menu doesn't contain the inherited parent menu.
Hide
Stefan Seidel added a comment -

This was still working in 2.0-beta-5 and is still not working in 2.0-beta-7-SNAPSHOT.

Show
Stefan Seidel added a comment - This was still working in 2.0-beta-5 and is still not working in 2.0-beta-7-SNAPSHOT.
Hide
Alexandre Navarro added a comment -

I have the same problem with 2.0-beta-6.

Show
Alexandre Navarro added a comment - I have the same problem with 2.0-beta-6.
Hide
Martin Burger added a comment -

Duplicate of MSITE-293 and MSITE-297?

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-293 and MSITE-297? 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.
Hide
Dennis Lundberg added a comment -

Thanks to the fix for MSHARED-18, Cameron's sample project now work correctly with the latest 2.0-beta-7-SNAPSHOT.

Show
Dennis Lundberg added a comment - Thanks to the fix for MSHARED-18, Cameron's sample project now work correctly with the latest 2.0-beta-7-SNAPSHOT.
Hide
Ian added a comment -

How come this is listed as fixed?

I have version 2.0.7, and I tried 2.0.9, and I still get the same issues with the child site.xml files not being read at all.

Show
Ian added a comment - How come this is listed as fixed? I have version 2.0.7, and I tried 2.0.9, and I still get the same issues with the child site.xml files not being read at all.
Hide
Dennis Lundberg added a comment -

You need to specify version 2.0-beta-7 for Maven Site Plugin. It has nothing to do with which version of Maven you are using.

Show
Dennis Lundberg added a comment - You need to specify version 2.0-beta-7 for Maven Site Plugin. It has nothing to do with which version of Maven you are using.

People

Vote (5)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: