Maven Site Plugin
  1. Maven Site Plugin
  2. MSITE-479

stage-deploy re-run's all javadoc's for every module

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Not A Bug
    • Affects Version/s: 2.1
    • Fix Version/s: None
    • Component/s: site:stage(-deploy)
    • Labels:
      None
    • Number of attachments :
      0

      Description

      When running 'mvn clean install site:site' a javadoc's report work's as expected...

      When running 'mvn clean install site:site site:stage-deploy -DstagingSiteURL=file://c:/temp/site' there is a problem with the javadoc report. In a multi module project each time the javadoc's report is run, it claims all other modules have not had the javadoc's run yet - and it runs them.

      Consequently, if I have the following multi-module layout..

      ./project
      ./project/module-1
      ./project/module-2
      ./project/module-3
      ./project/module-4
      ./project/module-5
      ./project/module-6
      

      For modules 1..6 it will complain that all other modules have not had their javadoc goal run and the javadoc plugin will run 6x6=36 times! Note that the log's below are for module-6.

      [INFO] ------------------------------------------------------------------------
      [INFO] Building module-6
      [INFO] ------------------------------------------------------------------------
      
      ...truncated log's...
      
      [INFO] Generating "JavaDocs" report.
      [WARNING] Source files encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
      [ERROR] Error fetching link: http://java.sun.com/javase/6/docs/api/package-list. Ignored it.
      [INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:2.6.1:javadoc' has not be previously called for the project: 'com.acme.project:module-1:jar:0.0.1-SNAPSHOT'. Trying to invoke it...
      [INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:2.6.1:javadoc' has not be previously called for the project: 'com.acme.project:module-2:jar:0.0.1-SNAPSHOT'. Trying to invoke it...
      [INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:2.6.1:javadoc' has not be previously called for the project: 'com.acme.project:module-3:jar:0.0.1-SNAPSHOT'. Trying to invoke it...
      [INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:2.6.1:javadoc' has not be previously called for the project: 'com.acme.project:module-4:jar:0.0.1-SNAPSHOT'. Trying to invoke it...
      [INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:2.6.1:javadoc' has not be previously called for the project: 'com.acme.project:module-5:jar:0.0.1-SNAPSHOT'. Trying to invoke it...
      [INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:2.6.1:javadoc' has not be previously called for the project: 'com.acme.project:module-6:jar:0.0.1-SNAPSHOT'. Trying to invoke it...
      

      The concern I have is that site:site never complains about this and it's output is correct, why would stage-deploy be manipulating the report generation?

      Hopefully this is a mis-configuration on my part

        Issue Links

          Activity

          Hide
          Erik Brakkee added a comment -

          This appears to be already reported and is a problem in the javadoc plugin

          see http://jira.codehaus.org/browse/MJAVADOC-268

          Show
          Erik Brakkee added a comment - This appears to be already reported and is a problem in the javadoc plugin see http://jira.codehaus.org/browse/MJAVADOC-268
          Hide
          Lukas Theussl added a comment -

          javadoc issue

          Show
          Lukas Theussl added a comment - javadoc issue

            People

            • Assignee:
              Lukas Theussl
              Reporter:
              Andrew Hughes
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: