On 9/8/06, Geoffrey De Smet <[EMAIL PROTECTED]> wrote:
I've already read that, there is no example of the child module's site.xml in there. I've been trying for ages to get the child module's site.xml to inherit the parent's site.xml (which is also the parent pom of it's own pom) and add a few links, with no luck.
Here is an example, which is in development and will likely change (possibly to remove the site inheritence). As of now, though, it does illustrate how menus, links and style info can be inherited. Parent pom: http://svn.apache.org/repos/asf/jakarta/commons/trunks-sandbox/pom.xml Parent site.xml: http://svn.apache.org/repos/asf/jakarta/commons/trunks-sandbox/src/site/site.xml Child pom: http://svn.apache.org/repos/asf/jakarta/commons/sandbox/csv/trunk/pom.xml Child site.xml: http://svn.apache.org/repos/asf/jakarta/commons/sandbox/csv/trunk/src/site/site.xm Installing or deploying the parent POM also deploys/installs the parent site descriptor. There is no reference to the parent in the child site.xml. Apparently, inheritance is triggered by the POM dependency. In the example, the child is not defined as a module of the parent, but it used to be and that worked as well. It could be that in that case you need to do something like "mvn -N deploy" or "mvn -N install" from the parent to get the parent descriptor installed before building the child. Style info, links and a menu are inherited in the example. The inherited menu <menu name="Commons" inherit="bottom"> uses the inherit attribute for positioning, as mentioned in the docs. Phil --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]