Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4618

maven-javadoc-plugin aggregate-jar fails with maven3 and multiple modules

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0-alpha-7
    • 3.0-beta-1
    • Plugins and Lifecycle
    • None

    Description

      Binding javadoc:aggregate-jar to package in an aggregator project works with maven 2.

      In maven3, it attempts to build the aggregate javadocs before completing the full reactor.

      When executing 'mvn install', I'd expect it to run the reactor and install all modules before attempting the 'compile' dependency resolution for the javadoc execution.

      During early execution, I get output such as:

      [WARNING] The dependency: [org.torquebox:torquebox-common-spi:jar:1.0.0.Beta19] can't be resolved but has been found in the reactor (probably snapshots).
      This dependency has been excluded from the Javadoc classpath. You should rerun javadoc after executing mvn install.
      

      In maven2, it'd react, install all submodules, then, as the last act, do the javadoc:aggregate-jar.

      If I add a <dependency> for each module to the maven-javadoc-plugin's <dependencies> section, then it will get the order correct. I'd just kinda think that'd be implicit.

      Attachments

        1. MNG-4618.zip
          3 kB
          Benjamin Bentmann

        Activity

          People

            bentmann Benjamin Bentmann
            bob Bob Paulin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: