Maven 2.x and 3.x Site Plugin

Menus from the parent pom should not be inherited

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Duplicate
  • Affects Version/s: 2.0-beta-6, 2.0-beta-7, 2.0
  • Fix Version/s: None
  • Component/s: site descriptor
  • Labels:
    None
  • Environment:
    Windows, Java 6, Maven 2.09
  • Number of attachments :
    1

Description

According to the Inheritance section from: http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html
it says,

By default, only the basic settings are inherited. From the body, only the links are inherited, and these accumulate to contain all the parents' site descriptor links.

Alas, this is not the case and this is a major problem. If I downgrade to 2.0-beta-5, the behavior is as expected. Using 2.0-beta-6, 2.0-beta-7, or 2.0, makes the menus from the parent pom trickle into the inheriting project.

I have attached a sample project to illustrate this problem. The attached zip contains 2 simple maven projects:

  • parentpom – represents a corporate parent pom with some site documentation
  • multiproj – represents a multiproject that inherits the parentpom.

If you edit parentpom\pom.xml and change the version of the site plugin to 2.0-beta-5, then run mvn clean install site for both the parentpom and then multiproj, you will see a fine site generated for multiproj.

Then, if you edit parentpom\pom.xml and change the version of the site plugin to 2.0 (the latest), then run mvn clean install site for both the parentpom and then multiproj, you will see the site generated for multiproj contains menu links from the parent pom which should not have been inherited.

Issue Links

Activity

Hide
Anthony Whitford added a comment -

I'm not sure if this issue is the same as MSITE-293, but I do think it is related, so linking them.

Show
Anthony Whitford added a comment - I'm not sure if this issue is the same as MSITE-293, but I do think it is related, so linking them.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: