You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Gabriel Forro (JIRA)" <ji...@codehaus.org> on 2009/05/06 15:05:45 UTC

[jira] Issue Comment Edited: (MSITE-293) Submodule inherit menu but this should not happend

    [ http://jira.codehaus.org/browse/MSITE-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=175250#action_175250 ] 

Gabriel Forro edited comment on MSITE-293 at 5/6/09 8:05 AM:
-------------------------------------------------------------

I have tried the new 2.0 version of maven-site-plugin (Windows XP + Maven 2.0.9). It still contains this bug. The found problems are as it follows:

1. If the child project has not got its own site.xml definition. then all of the menus are inherited (regardless of the existence of the inherit attribute). In my opinion the inheritance could work properly in cases, where the child has not got its own site.xml. Menu inheritance works fine, if the child project has its own site.xml (except for one case which is described in point 2)
2. The special item "parent" is inherited only if the project->url tag is defined in the parent's pom.xml file. If the project->url is not set, then the "parent" menu item is never inherited (even if the child project has its own site.xml)



      was (Author: gabriel.forro):
    I have tried the new 2.0 version of this plugin (on Windows XP + Maven 2.0.9). It still contains this bug. The menus are inherited always :o(
  
> Submodule inherit menu but this should not happend
> --------------------------------------------------
>
>                 Key: MSITE-293
>                 URL: http://jira.codehaus.org/browse/MSITE-293
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: inheritance, site descriptor
>    Affects Versions: 2.0-beta-6
>         Environment: maven 2.0.8
> jdk 1.6
> windows
>            Reporter: Andreas Höhmann
>            Priority: Critical
>         Attachments: MSITE-293.zip
>
>
> Projectstructur:
> {noformat}
> modul
> |  pom.xml
> |  src/site/site.xml
> |  src/site/xdoc/index.xml
> +-- submodul 1
>     |  pom.xml
>     |  src/site/xdoc/index.xml
> +-- submodul 2
>     |  pom.xml
>     |  src/site/xdoc/index.xml 
> {noformat}
> modul :: site.xml
> {code}
> ...
>          <body>
> 		<menu ref="parent" />
> 		
> 		<menu name="Overview" inherit="top">
> 		  <item name="Introduction" href="index.html"/>
> 		</menu>
> 		
> 		<menu name="Maven">
> 			<item name="FAQ" href="faq.html"/>
> 		  <item name="Profiles" href="maven_profiles.html"/>
> 		</menu>
> 		
> 		<links>
> 			<item name="Maven Repository" href="http://lp2p067c:82/maven2/repositories/" />
> 		</links>
> 		
> 		<menu ref="modules" inherit="bottom" />
> 		<menu ref="reports" inherit="bottom" />
>  </body>
> ...
> {code}
> after "mvn clean install site" each submodules has a menu "Maven" ... but i want this only for the "main-modul".
> whats wrong?
> http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html ... Inheritance ... "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."

-- 
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