I did it by just specifying the artifactId and the configuration. It aggregated 
5 modules, 1 level deep.

Roald Bankras


-----Original Message-----
From: Daun DeFrance [mailto:[EMAIL PROTECTED]
Sent: Fri 5/19/2006 3:38 PM
To: Maven Users List
Subject: Javadoc 2.0 Plugin and Aggregate
 
Hi all,

I am really jazzed about the aggregate feature of the Javadoc 2.0
plugin.  Unfortunately, I can't seem to make it work.   I have specified
the plugin in my pom with version number and aggregate as true.

 

<plugin>

        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-javadoc-plugin</artifactId>

        <version>2.0</version>

        <configuration>

            <aggregate>true</aggregate>

        </configuration>

      </plugin>

 

When I run a top build with sub-modules, I get errors as if the
classpath did not include submodule dependencies:

 

[SNIP]

Generating
c:/dev/novus/access/trunk/target/site/apidocs\com/novusedge/platform/ser
vices/whitelist/\package-tree.html...

Generating
c:/dev/novus/access/trunk/target/site/apidocs\constant-values.html...

Generating
c:/dev/novus/access/trunk/target/site/apidocs\serialized-form.html...

173 warnings

[INFO]
------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO]
------------------------------------------------------------------------

[INFO] Error during report generation

 

Embedded error: Exit code: 1 -
c:/dev/novus/access/trunk/common/src/main/java/com/novusedge/common/Prop
erty.java:14: package org.igfay.jfig does not e

xist

import org.igfay.jfig.JFig;

                      ^

c:/dev/novus/access/trunk/common/src/main/java/com/novusedge/common/Prop
erty.java:15: package org.igfay.jfig does not exist

import org.igfay.jfig.JFigEvent;

                      ^

c:/dev/novus/access/trunk/common/src/main/java/com/novusedge/common/Prop
erty.java:16: package org.igfay.jfig does not exist

import org.igfay.jfig.JFigException;

[SNIP]

 

 

The code clearly compiles and when I remove the aggregate setting in the
same pom, the build runs fine, but the reports are obviously not
aggregated.  I reviewed the rest of the settings of the plugin
(http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html)
but I did not see anything else which I am missing which should be
required to aggregate.

 

Any thoughts on how to get aggregate working?

 

Best,

DeFrance



-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.6.1/343 - Release Date: 5/18/2006
 



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

Reply via email to