Thanks, but I still can't get this feature working

I have a organisation pom and site.xml from which I would like to inherit 
one of the menus.

I have specified the menu in the "parent" site.xml as

<menu name="Applications" inherit="top"> or <menu name="Applications">
    <item name="Phoenix"
href="http://localhost/sites/Phoenix-Parent/index.html"/
<http://localhost/sites/Phoenix-Parent/index.html> >
    <item name="LWR" href="http://localhost/sites/LWR-Parent/index.html"/
<http://localhost/sites/LWR-Parent/index.html> >
</menu>

and have deployed the snapshot to our inhouse repo.

in the "child" site.xml I have

<menu name="Applications" inherit="top"> or  <menu name="Applications">
</menu>

What am I missing, I have tried putting the inherit="top" in either and both

of the site.xml menu nodes.
- All I get is an empty menu named "Applications"

I have also tried without the menu node in the "child" site.xml
- Then I get no "Applications" menu at all.

NB: I am using a flat structure so we can use eclipse - I hope it is not 
this causing the problems.....

a warning I get from the debug of site:site : however it then seems to get 
the eDev (organisation) pom / site.xml from the repo.

[INFO] [site:site]
[WARNING] Unable to load parent project from repository: Could not find the 
model file 
'C:\Dev_Workspaces\Eclipse_3.1.1\PhoenixJ2EE\Phoenix-Parent\..\pom.xml'.
[DEBUG] eDev: resolved to version 1.0-20060824.094554-81 from repository 
central

Has anyone got this working ???

Many Thanks

Jon

  _____  

From: Valerio Schiavoni [mailto:[EMAIL PROTECTED] 
Sent: 23 August 2006 13:48
To: Maven Users List; Jon SlinnHawkins
Subject: Re: RE : Web site generation for multiple projects


hello Jon,


On 8/23/06, Jon SlinnHawkins <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 

What does : <menu name="Common Links" inherit="top" /> achieve ?



as it is explained in the how-to:
http://maven.apache.org/plugins/maven-site-plugin/howto.html
<http://maven.apache.org/plugins/maven-site-plugin/howto.html> :



Site descriptors are inherited along the same lines as project descriptors
are. When you deploy a project, it's site descriptor is also deployed so
that it can be inherited.

By default, only the basic settings are inherited. From the body, only the
links are inherited, and these accumulate to contain all of the descriptor's
links.

However, it is possible to inherit menus as well. To do so, use the inherit
flag of the site descriptor. This can be either top or bottom, indicating
where in the menu it will be placed after inheritance. 

-- 
http://valerioschiavoni.blogspot.com <http://valerioschiavoni.blogspot.com> 
http://jroller.com/page/vschiavoni <http://jroller.com/page/vschiavoni>  

Reply via email to