Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-398

Menus from the parent pom should not be inherited

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 2.0-beta-6, 2.0-beta-7, 2.0
    • None
    • site descriptor
    • None
    • Windows, Java 6, Maven 2.09

    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.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            awhitford Anthony Whitford
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment