I have a maven project with lots of sub-modules, and I use parent pom to control the plugins the directory like below
-pom.xml (parent pom)
+- submodule1
+- submodule2
+- src\site\site.xml
therefore src\site\site.xml
contains the customized menu like below
<project>
....
<body>
<menu name="Overview">
<item name="Introduction" href="introduction.html"/>
</menu>
<menu name="Development">
<item name="Getting started" href="designenv.html"/>
<item name="FAQ" href="designfaq.html" />
<item name="Javadoc" href="apidocs/index.html" />
</menu>
<menu ref="modules"/>
<menu ref="reports"/>
</body>
</project>
After I run mvn site:stage
in root (suggested from maven site plugin), the parent webpage is fine, while the <sub-modules>\index.html
doesn't contain any menu (no project info & project report)
Also I notice if I run mvn site
under sub-modules, the index.html doesn't contain any menu in left, while the individual html exist in directory like pmd.html, license.html
- Do I need to add
src\site\site.xml
in each sub-module or other better way ? - or Did I do something stupid in
pom.xml
somewhere ?
Any hints ?
[update] also like for banner image, if I set in parent like this
<bannerLeft>
<name>edcp</name>
<src>images/mylogo.png</src>
</bannerLeft>
The site for sub-module with points to wrong direction, in html, looks like ..\..\<submodule>
, not ..\images\mylogo.png