Uploaded image for project: 'Maven Javadoc Plugin'
  1. Maven Javadoc Plugin
  2. MJAVADOC-157

Javadoc for multi-module build executes full lifecycle for each module

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.3
    • 2.4
    • None
    • None
    • jdk 1.4.2_16, linux

    Description

      We have a build that nests modules three levels deep. When generating javadoc, for each module the whole lifecylcle is repeated.

      Sample log:

      [INFO] Scanning for projects...
      [INFO] Reactor build order: 
      [INFO]   Toplevel
      [INFO]   Second level: foo
      [INFO]   mule-foo-foo1
      [INFO]   Second level: bar
      [INFO]   mule-bar-bar1
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Toplevel
      [INFO]    task-segment: [clean, site]
      [INFO] ----------------------------------------------------------------------------
      [INFO] [clean:clean]
      [INFO] Preparing javadoc:javadoc
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Toplevel
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: foo
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-foo-foo1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: bar
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-bar-bar1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] Preparing javadoc:test-javadoc
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Toplevel
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: foo
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-foo-foo1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: bar
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-bar-bar1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] [site:site]
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: foo
      [INFO]    task-segment: [clean, site]
      [INFO] ----------------------------------------------------------------------------
      [INFO] [clean:clean]
      [INFO] Preparing javadoc:javadoc
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Toplevel
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: foo
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-foo-foo1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: bar
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-bar-bar1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] Preparing javadoc:test-javadoc
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Toplevel
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: foo
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-foo-foo1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: bar
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-bar-bar1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] [site:site]
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-foo-foo1
      [INFO]    task-segment: [clean, site]
      [INFO] ----------------------------------------------------------------------------
      [INFO] [clean:clean]
      [INFO] Preparing javadoc:javadoc
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Toplevel
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: foo
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-foo-foo1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: bar
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-bar-bar1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] Preparing javadoc:test-javadoc
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Toplevel
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: foo
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-foo-foo1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: bar
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-bar-bar1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] [site:site]
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: bar
      [INFO]    task-segment: [clean, site]
      [INFO] ----------------------------------------------------------------------------
      [INFO] [clean:clean]
      [INFO] Preparing javadoc:javadoc
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Toplevel
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: foo
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-foo-foo1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: bar
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-bar-bar1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] Preparing javadoc:test-javadoc
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Toplevel
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: foo
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-foo-foo1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: bar
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-bar-bar1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] [site:site]
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-bar-bar1
      [INFO]    task-segment: [clean, site]
      [INFO] ----------------------------------------------------------------------------
      [INFO] [clean:clean]
      [INFO] Preparing javadoc:javadoc
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Toplevel
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: foo
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-foo-foo1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: bar
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-bar-bar1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] Preparing javadoc:test-javadoc
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Toplevel
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: foo
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-foo-foo1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Second level: bar
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building mule-bar-bar1
      [INFO] ----------------------------------------------------------------------------
      [INFO] No goals needed for project - skipping
      [INFO] [site:site]
      [INFO] 
      [INFO] 
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO] ------------------------------------------------------------------------
      [INFO] Toplevel .............................................. SUCCESS [7.789s]
      [INFO] Second level: foo ..................................... SUCCESS [0.966s]
      [INFO] mule-foo-foo1 ......................................... SUCCESS [2.347s]
      [INFO] Second level: bar ..................................... SUCCESS [0.848s]
      [INFO] mule-bar-bar1 ......................................... SUCCESS [2.290s]
      [INFO] ------------------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESSFUL
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 14 seconds
      [INFO] Finished at: Fri Oct 19 15:38:28 CEST 2007
      [INFO] Final Memory: 14M/29M
      [INFO] ------------------------------------------------------------------------
      

      I have attached a sample project structure.

      This seems to be caused by the @aggregator annotation in AbstractJavadocMojo. If I build a custom plugin from the current snapshot source, removing the @aggregator, the site builds correctly.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dirk@xanthippe.ping.de Dirk Olmes
              Votes:
              9 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: