You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ed Hillmann (JIRA)" <ji...@codehaus.org> on 2008/07/22 01:10:26 UTC

[jira] Created: (MSITE-345) Generated site page for child module inherits items from parent site all the time

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

                 Key: MSITE-345
                 URL: http://jira.codehaus.org/browse/MSITE-345
             Project: Maven 2.x Site Plugin
          Issue Type: Bug
          Components: inheritance
    Affects Versions: 2.0-beta-7
         Environment: Windows XP, Solaris 5.9
            Reporter: Ed Hillmann


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MSITE-345) Generated site page for child module inherits items from parent site all the time

Posted by "Anne Gerodolle (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=142724#action_142724 ] 

Anne Gerodolle commented on MSITE-345:
--------------------------------------

I observe *almost* the same behaviour :
If no site.xml are defined in the child module, menus are incorrectly inherited. 
However, is a site.xml is defined, the behaviour is now correct (e.g. in the provided example,  only the "parent" menu is inherited.

thus, a simple solution is to provide an "empty" site.xml in children projects. (I tried with a site.xml containing nothing between <body> and </body>

> Generated site page for child module inherits items from parent site all the time
> ---------------------------------------------------------------------------------
>
>                 Key: MSITE-345
>                 URL: http://jira.codehaus.org/browse/MSITE-345
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: inheritance
>    Affects Versions: 2.0-beta-7
>         Environment: Windows XP, Solaris 5.9
>            Reporter: Ed Hillmann
>
> 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
> {code:xml}
> <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>
> {code}
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MSITE-345) Generated site page for child module inherits items from parent site all the time

Posted by "Antonio Petrelli (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=151162#action_151162 ] 

Antonio Petrelli commented on MSITE-345:
----------------------------------------

Upgrading to 2.0-beta-8-SNAPSHOT works for me, in Tiles project:
http://tiles.apache.org/


> Generated site page for child module inherits items from parent site all the time
> ---------------------------------------------------------------------------------
>
>                 Key: MSITE-345
>                 URL: http://jira.codehaus.org/browse/MSITE-345
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: inheritance
>    Affects Versions: 2.0-beta-7
>         Environment: Windows XP, Solaris 5.9
>            Reporter: Ed Hillmann
>
> 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
> {code:xml}
> <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>
> {code}
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MSITE-345) Generated site page for child module inherits items from parent site all the time

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg closed MSITE-345.
---------------------------------

    Resolution: Duplicate

> Generated site page for child module inherits items from parent site all the time
> ---------------------------------------------------------------------------------
>
>                 Key: MSITE-345
>                 URL: http://jira.codehaus.org/browse/MSITE-345
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: inheritance
>    Affects Versions: 2.0-beta-7
>         Environment: Windows XP, Solaris 5.9
>            Reporter: Ed Hillmann
>
> 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
> {code:xml}
> <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>
> {code}
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MSITE-345) Generated site page for child module inherits items from parent site all the time

Posted by "Ed Hillmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=142807#action_142807 ] 

Ed Hillmann commented on MSITE-345:
-----------------------------------

Yes, that worked.  When I update my child projects to include a src/site/site.xml that looks like this

{code:xml}
<project>
    <version position="right"/>
    <body>
        <menu ref="reports"/>
    </body>
</project>{code}

then it works the way I want it.  This does the same thing as your suggestion of an empty <body> block, except that it generates the reports (which is good, as I would like to have those).

So, it seems that once actual named menus are created (<menu name="something"/>), the inheritance gets mucked up.

However, this is doing as I want, so I'm happy to reduce the priority of this issue.

> Generated site page for child module inherits items from parent site all the time
> ---------------------------------------------------------------------------------
>
>                 Key: MSITE-345
>                 URL: http://jira.codehaus.org/browse/MSITE-345
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: inheritance
>    Affects Versions: 2.0-beta-7
>         Environment: Windows XP, Solaris 5.9
>            Reporter: Ed Hillmann
>
> 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
> {code:xml}
> <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>
> {code}
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MSITE-345) Generated site page for child module inherits items from parent site all the time

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MSITE-345:
------------------------------------

    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
{code:xml}
<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>
{code}
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.

  was:
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.


> Generated site page for child module inherits items from parent site all the time
> ---------------------------------------------------------------------------------
>
>                 Key: MSITE-345
>                 URL: http://jira.codehaus.org/browse/MSITE-345
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: inheritance
>    Affects Versions: 2.0-beta-7
>         Environment: Windows XP, Solaris 5.9
>            Reporter: Ed Hillmann
>
> 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
> {code:xml}
> <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>
> {code}
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira