You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Wendy Smoak <ws...@gmail.com> on 2007/10/07 20:16:48 UTC

Menu element for modules getting removed from site.xml

I have a master pom with a companion src/site/site.xml.  When I
install or deploy the pom, the site.xml file also gets put in the
local or remote repo.

... except that the <menu ref="modules /> tag is *not* in the deployed site.xml.

I've changed other things, such as misspelling 'parent' in the <menu
ref="parent" /> element to make sure it's really deploying the file
from src/site/site.xml, and it seems to be.

I also tried adding ${modules} and that also got removed.

Can someone confirm that I am not imagining this?  Is there a reason for it?

I'd really like projects that use this master pom as their parent to
have links to their sub-modules on their websites by default.

-- 
Wendy

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


Re: Menu element for modules getting removed from site.xml

Posted by Heinrich Nirschl <he...@gmail.com>.
On 10/7/07, Wendy Smoak <ws...@gmail.com> wrote:
> On 10/7/07, Heinrich Nirschl <he...@gmail.com> wrote:
>
> > I checked some of my projects, the <menu ref="modules" /> gets expanded
> > to a list of all modules. Do you have modules defined in your pom? If not, this
> > may explain why it disappears.
>
> Does this happen in site.xml in the repository?    Or are you talking
> about the website itself?
>
> (No, the master pom does not have modules.)

It happens in the site.xml in the repository. An example:

<menu ref="modules"/>

gets replaced by

<menu name="Modules" ref="modules">
  <item name="Module 1" href="mod1/index.html"/>
  <item name="Module 2" href="mod2/index.html"/>
</menu>

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


Re: Menu element for modules getting removed from site.xml

Posted by Wendy Smoak <ws...@gmail.com>.
On 10/7/07, Heinrich Nirschl <he...@gmail.com> wrote:

> I checked some of my projects, the <menu ref="modules" /> gets expanded
> to a list of all modules. Do you have modules defined in your pom? If not, this
> may explain why it disappears.

Does this happen in site.xml in the repository?    Or are you talking
about the website itself?

(No, the master pom does not have modules.)

-- 
Wendy

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


Re: Menu element for modules getting removed from site.xml

Posted by Heinrich Nirschl <he...@gmail.com>.
On 10/7/07, Wendy Smoak <ws...@gmail.com> wrote:
> I have a master pom with a companion src/site/site.xml.  When I
> install or deploy the pom, the site.xml file also gets put in the
> local or remote repo.
>
> ... except that the <menu ref="modules /> tag is *not* in the deployed site.xml.
>
> I've changed other things, such as misspelling 'parent' in the <menu
> ref="parent" /> element to make sure it's really deploying the file
> from src/site/site.xml, and it seems to be.
>
> I also tried adding ${modules} and that also got removed.
>
> Can someone confirm that I am not imagining this?  Is there a reason for it?
>
> I'd really like projects that use this master pom as their parent to
> have links to their sub-modules on their websites by default.

I checked some of my projects, the <menu ref="modules" /> gets expanded
to a list of all modules. Do you have modules defined in your pom? If not, this
may explain why it disappears.

- Henry

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