Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-6
-
Fix Version/s: 2.1
-
Component/s: inheritance, site descriptor
-
Labels:None
-
Environment:maven 2.0.8
jdk 1.6
windows
-
Number of attachments :
Description
Projectstructur:
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
modul :: site.xml
...
<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>
...
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."
Issue Links
- depends upon
-
MSHARED-116
If module has no site.xml then the decoration model is set equal to the parent instead of inheriting from it
-
-
MSHARED-117
Parent menu item is not inherited if no url in parent
-
I have the same probleme.
I have a main modul with a site.xml like this
<body>
<menu ref="parent" />
<menu ref="modules"/>
<menu ref="reports"/>
<menu name="Divers">
<item name="Historique des métriques" href="dashboard-report-historic.html"/>
<item name="Documentation" collapse="false">
<item name="Exemple avec APT" href="ex_apt.html" />
<item name="Exemple de FAQ avec fml" href="ex_fml.html"/>
<item name="Exemple avec xdoc" href="ex_xdoc.html" />
<item name="Exemple avec html" href="ex_html.html" />
</item>
</menu>
</body>
And i dont want those item are in the submodules , please what can i do ?