You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Breddy <ch...@breddy.net> on 2006/12/15 17:01:54 UTC

Re: site:site menu inheritance ?!?!?

Some tips:

- inherit=top goes in the parent POM
- if your parent POM is not in the directory just above, you need to
explicitly reference it in the child pom like this:

<relativePath>../parent-dir/pom.xml</relativePath>

-Chris


Jon SlinnHawkins wrote:
> 
> Hi,
> 
> Sorry for posting this again, but can anybody help me with this ?
> 
> This is the last thing i need to get working
> 
> Many Thanks
> 
> Jon
> 
> "Jon SlinnHawkins" <j....@elsevier.com> wrote in message 
> news:eck0rb$obs$1@sea.gmane.org...
>> Hi,
>>
>> How can i get the inherit feature working for menus in site.xml
>>
>> 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"/>
>>    <item name="LWR" href="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 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/site%3Asite-menu-inheritance--%21-%21--tf2157988s177.html#a7894068
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org