You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Guimiot Isabelle (JIRA)" <ji...@codehaus.org> on 2007/12/07 11:48:58 UTC
[jira] Commented: (MSITE-270) site.xml: menus inherited that should
not
[ http://jira.codehaus.org/browse/MSITE-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_116127 ]
Guimiot Isabelle commented on MSITE-270:
----------------------------------------
I have a problem that seems to be linked to this one (beta-6) : I have a root module and some sub-modules.
The root site.xml contains :
<body>
<menu ref="modules" />
<menu name="Menu">
<item name="Root Doc" href="/rootDoc.html" />
</menu>
</body>
and each sub-module site.xml contains :
<body>
<menu ref="parent" />
<menu ref="reports" />
<menu name="Menu" >
<item name="Foo" href="/foo.html"/>
</menu>
</body>
When I launch the site goal, I obtain this menu :
- in the root site (correct) :
----------------------------
Modules
Project 1
Project 2
Menu
Root Doc
----------------------------
- in the sub-modules site (completely wrong) :
----------------------------
Menu
Root Doc
----------------------------
...instead of stuff like that :
----------------------------
Parent
Parent Project
Reports
Report 1
Report 2
Report 3
...
Menu
Foo
----------------------------
If I understand, it seems that the submodule site.xml is totally ignored, and replaced by an inherited site.xml from the root module. I also tried to put some "inherit" attributes everywhere in both files (root and submodule) but it didn't change anything...
This issue is very important, I have to keep my beta-5 version until it's resolved.
thanx
Isabelle
> site.xml: menus inherited that should not
> -----------------------------------------
>
> Key: MSITE-270
> URL: http://jira.codehaus.org/browse/MSITE-270
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Affects Versions: 2.0-beta-5, 2.0-beta-6
> Reporter: Jörg Hohwiller
> Attachments: site-inherit-bug.zip
>
>
> I have a project with multiple levels of modules.
> In the toplevel project I declare a site-descriptor with some general menu's that have no inherit attribute (I also tried inherit='none') together with
> <menu ref="parent" inherit="top"/>
> <menu ref="modules" inherit="bottom"/>
> <menu ref="reports" inherit="bottom"/>
> Now a module of the toplevel project that itself has modules declares a site-descriptor with an additional regular menu that is inherited.
> However the site of that module contains the menus from the toplevel project that are NOT declared to be inherited.
--
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