That's exactly what I was getting when I tried the latest released site
plugin. You would have to search for my email to describe it. I think you
described it better than I did.

I don't know a solution either.

-- Lee

On 7/13/06, Thomas Van Buskirk <[EMAIL PROTECTED]> wrote:

Does anyone have a working parent pom and site.xml, and working child pom
and site.xml that they're willing to share?

This is mine, it does not work correctly.  The modules display, but they
are just <strong> (bold), no hyperlink.  If I click on one of my reports,
the module turns to a hyperlink, but the hyperlink points the index.htmlof the 
current POM.

I have my parent pom set up like this:
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.mycompany.blah</groupId>
  <artifactId>apps</artifactId>
  <version>1.0</version>
  <packaging>pom</packaging>
  <name>master POM</name>
  ...
  <modules>
    <module>subproject</module>
  </modules>
  ...
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
      </plugin>
    </plugins>
  </reporting>
  ...
  <distributionManagement>
    <site>
      <id>website</id>
      <name>My Maven Website</name>
      <url>file:///home/myhome/site</url>
    </site>
  </distributionManagement>
</project>

My Parent site.xml file is as follows:

<project name="Maven">
  <bannerLeft>
    <name>Maven</name>
    <href>http://maven.apache.org/</href>
    <src>http://maven.apache.org/images/apache-maven-project.png</src>
  </bannerLeft>
  <bannerRight>
    <name>Maven Icon</name>
    <src>http://maven.apache.org/images/maven-small.gif</src>
  </bannerRight>
  <body>
    <links>
      <item name="Maven 2" href="http://maven.apache.org/maven2/"/>
    </links>
    <menu name="Maven 2.0">
      <item name="Introduction" href="index.html"/>
      <item name="Download" href="download.html"/>
    </menu>

    <menu ref="modules" />
  </body>
</project>

My Child POM is set up like this:

<project>
  <parent>
    <groupId>com.mycompany.blah</groupId>
    <artifactId>apps</artifactId>
    <version>1.0</version>
    <relativePath>../pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.mycompany.other</groupId>
  <artifactId>my-subproject</artifactId>
  <packaging>jar</packaging>
  <name>subproject</name>
  ...
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
      </plugin>
    <plugins>
  </reporting>
  ...
</project>

My Child site.xml file is as follows:

<project name="Maven">
  <bannerLeft>
    <name>Maven</name>
    <href>http://maven.apache.org/</href>
    <src>http://maven.apache.org/images/apache-maven-project.png</src>
  </bannerLeft>
  <bannerRight>
    <name>Maven Icon</name>
    <src>http://maven.apache.org/images/maven-small.gif</src>
  </bannerRight>
  <body>
    <links>
      <item name="Maven 2" href="http://maven.apache.org/maven2/"/>
    </links>
    <menu name="Maven 2.0">
      <item name="Introduction" href="index.html"/>
      <item name="Download" href="download.html"/>
    </menu>

    <menu ref="parent" />
    <menu ref="reports" />

  </body>
</project>

Finally, the directory stucture is:
+apps
  -pom.xml
  + src
    + site
      -site.xml
  +subproject
    -pom.xml
    + src
      + site
        -site.xml

I then go to file:///home/myhome/site/index.html and it displays the
master pom site.  There is a "Modules" heading in the menu, and one item
underneath it called "subproject", but you cannot click it (it is just
bolded).  If I then click on "Downloads" the "subproject" item becomes
selectable and turns blue, but it just takes you back to the master pom home
page.

Hope this can help some people (even though the inheritance doesn't work
correctly).

Tom

>>> [EMAIL PROTECTED] 07/13/06 10:52 AM >>>

In a different thread someone mentioned that the modules won't show up
unless
modules' POMs inherit from the agregator POM as opposed to inheriting from
some top-level POM. However, it is not always possible (convenient) to
inherit from the agregator POM.

--
View this message in context:
http://www.nabble.com/RE-%3A-Web-site-generation-for-multiple-projects-tf1933584.html#a5313355
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
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]




--
-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]

Reply via email to