Maven Javadoc Plugin
  1. Maven Javadoc Plugin
  2. MJAVADOC-257

maven-javadoc-plugin 2.5, 2.6 and mojo: Error extracting plugin descriptor

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.5, 2.6
    • Fix Version/s: 2.6.1
    • Labels:
      None
    • Environment:
      Apache Maven 2.2.0
      Java version: 1.6.0_11
    • Number of attachments :
      1

      Description

      Using maven-javadoc-plugin Version 2.5 or 2.6 for a project of type <packaging>maven-plugin</packaging> leads to the following error message, even if the aggregation is not set:

      Error extracting plugin descriptor: 'Goal: ... already exists in the plugin descriptor ...

      Using maven-javadoc-plugin Version 2.2 solves this problem.

      Structure of the project:

       
      [INFO] Reactor build order: 
      [INFO]   Service
      [INFO]   Service: Common Dependencies
      [INFO]   Service: API
      [INFO]   Service: Test Fixture
      [INFO]   Service: Implementation
      [INFO]   Service: DI
      [INFO]   Service: auth-maven-plugin
      [INFO]   Service: Config
      [INFO]   Service: Interceptors
      [INFO]   Service: Client Module
      [INFO]   Service: Web Components
      [INFO]   Service: Example
      

      Configuration in service/pom.xml

          <profile>
            <id>full-site</id>
            <reporting>
              <plugins>
                <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-dependency-plugin</artifactId>
                  <reportSets>
                    <reportSet>
                      <reports>
                        <report>analyze-report</report>
                      </reports>
                    </reportSet>
                  </reportSets>
                </plugin>
                <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-javadoc-plugin</artifactId>
                  <version>2.5</version>
                  <configuration>
                    <quiet>true</quiet>
                    <show>protected</show>
                    <links>
                      <link>http://java.sun.com/javase/6/docs/api/</link>
                      <link>http://java.sun.com/javaee/5/docs/api/</link>
                    </links>
                  </configuration>
                </plugin>
      ...
      

      Also see: http://jira.codehaus.org/browse/MJAVADOC-224

        Issue Links

          Activity

          Hide
          Vincent Siveton added a comment -

          Could you please provide a test case? It seems that you have 2 identical goals...
          Also, please provide debug files
          http://maven.apache.org/plugins/maven-javadoc-plugin/faq.html#How_to_know_exactly_the_Javadoc_command_line

          Show
          Vincent Siveton added a comment - Could you please provide a test case? It seems that you have 2 identical goals... Also, please provide debug files http://maven.apache.org/plugins/maven-javadoc-plugin/faq.html#How_to_know_exactly_the_Javadoc_command_line
          Hide
          Vincent Siveton added a comment -

          Also, I tried with Doxia and Surefire and your profile seems to work.

          Show
          Vincent Siveton added a comment - Also, I tried with Doxia and Surefire and your profile seems to work.
          Hide
          jcrouvi added a comment -

          @Vincent Siveton:
          With the version 2.2 it works fine with the same profile and the same goals as mentioned
          in the description.
          Please have a look at http://jira.codehaus.org/browse/MJAVADOC-224.
          I will provide more information asap.

          Show
          jcrouvi added a comment - @Vincent Siveton: With the version 2.2 it works fine with the same profile and the same goals as mentioned in the description. Please have a look at http://jira.codehaus.org/browse/MJAVADOC-224 . I will provide more information asap.
          Hide
          Vincent Siveton added a comment -

          jcrouvi, I (re) read the plugin code and my only idea is that the sourcepath list is not immutable in reactor mode [1].
          Since I have no test case or failing project, could you please try this patch in your project?

          [1] http://maven.apache.org/plugins/maven-javadoc-plugin/xref/org/apache/maven/plugin/javadoc/AbstractJavadocMojo.html#1877

          Show
          Vincent Siveton added a comment - jcrouvi, I (re) read the plugin code and my only idea is that the sourcepath list is not immutable in reactor mode [1] . Since I have no test case or failing project, could you please try this patch in your project? [1] http://maven.apache.org/plugins/maven-javadoc-plugin/xref/org/apache/maven/plugin/javadoc/AbstractJavadocMojo.html#1877
          Hide
          Vincent Siveton added a comment -

          I created an IT and fixed the pb as discuss here in r811825, snap deployed.

          Show
          Vincent Siveton added a comment - I created an IT and fixed the pb as discuss here in r811825 , snap deployed.
          Hide
          Olivier Lamy added a comment -

          It looks it failed on the grid.
          https://grid.sonatype.org/ci/view/Plugins/job/maven-plugins-ITs/jdk=1.5,label=ubuntu/266/consoleFull

          I confirm it fails on my env too.

          Show
          Olivier Lamy added a comment - It looks it failed on the grid. https://grid.sonatype.org/ci/view/Plugins/job/maven-plugins-ITs/jdk=1.5,label=ubuntu/266/consoleFull I confirm it fails on my env too.

            People

            • Assignee:
              Vincent Siveton
              Reporter:
              jcrouvi
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: