I did not have <relativePath/> set at all. If I set that in module-1 a link from the parent site to module-1 shows up in the menu. So that solved my problem, thanks.

However I'm a bit confused as to why this is needed. The parent has all the knowledge it needs about the children from the <modules/> section in the parent's pom. The reason for putting a <relativePath/> in a child would so that the child would know about its parent, like for creating a link from the child to the parent. IMHO the rendering of the parent site should not need <relativePath/> in its children to be able to create links to the child sites.

--
Dennis Lundberg

Brett Porter wrote:
Hi Dennis,

Could you drop a test case into JIRA for this? Would like to get it
resolved before 2.0. Looks like a bug, because it should find stuff
inside the reactor. It may be related to the
non-inheritance/interpolation bugs which are already there.

Do you have <relativePath/> set correctly in the children? It shouldn't
matter in the reactor, but worth checking.

- Brett

Dennis Lundberg wrote:
Hi all

I'm trying out the new site-plugin in a multi-module setup. My setup
looks like this:

-+- parent-project
 |  +- pom.xml
 |  +- src
 |     +- site
 |        +- site.xml
 +- module-1
 |  +- pom.xml
 |  +- src
 |     +- site
 |        +- site.xml
 +- module-2
 |  +- pom.xml
 |  +- src
 |     +- site
 |        +- site.xml
 +- ...

In the pom of the parent project I have a modules section that looks
like this:

  <modules>
    <module>../module-1</module>
    <module>../module-2</module>
    ...
  </modules>

Running mvn site, in the directory of the parent project, successfully
builds the parent site as well as the sites for each of the modules.

However, the parent project has a ${modulesItems} in it's site.xml and
there are no links there to the modules.

If I move a module into the parent directory and change the
module-elements accordingly, the links show up correctly.

Can someone help me out?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to