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

Generated site page for child module inherits items from parent site all the time

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0-beta-7
    • None
    • inheritance
    • None
    • Windows XP, Solaris 5.9

    Description

      I have a Maven project that consists of a parent project and two child projects. In the parent project, it contains a site.xml (in src/site) that looks like

      <project>
          <version position="right"/>
          <body>
              <menu ref="parent" inherit="top"/>
              <menu name="Development Home">
                  <item name="Developer Page" href="developerItems.html"/>
                  <item name="Outstanding Items" href="outstandingItems.html"/>
              </menu>
              <menu name="Development Streams">
                  <item name="trunk" href="http://wallaby:15000/webgui-trunk"/>
              </menu>
              <menu ref="modules"/>
              <menu ref="reports"/>
          </body>
      </project>
      

      The child projects do not have any site.xml files. When "mvn site" is run, the pages for the parent project are fine and the links all work. When I display the pages for the child modules, however, they too have menu entries for "Development Home" and "Development Streams". If I click on the "Home" menus, they fail (as would be expected).

      From the doco, I assumed that menu's by default aren't inherited. If I explictly declare inherit="none" for the "Development Home" and "Development Streams" menu items, nothing changes (they are still displayed in the child project's pages. If I attempt to define site.xml files for the child projects, nothing changes. I can't set up the site descriptors to prevent those Menu items from appearing in the child project's site documentation.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hildo hildo
              Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: