You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Jeroen Leenarts <je...@gmail.com> on 2007/06/15 15:46:55 UTC

[maven-javadoc-plugin] small suggestion/code improvement (diff included)

Hello,

I've just been trying to get my head around the interaction the JavaDoc
plugin when set to "aggregate" and multi-module builds...

This would have saved me tons of time(svn diff on trunk version of file):

Index: org/apache/maven/plugin/javadoc/AbstractJavadocMojo.java
===================================================================
--- org/apache/maven/plugin/javadoc/AbstractJavadocMojo.java    (revision
547679)
+++ org/apache/maven/plugin/javadoc/AbstractJavadocMojo.java    (working
copy)
@@ -1049,6 +1049,7 @@
     {
         if ( aggregate && !project.isExecutionRoot() )
         {
+            getLog().debug("Aggregate setting active, current project is
nog the exection root, skipping report generation."));
             return;
         }

I see a lot of return statements in the maven codebase without a
corresponding debug statement. While the logic is correct, it can be a bit
of a mystery sometimes why Maven does not do anything.

Kind regards,

Jeroen