Issue Details (XML | Word | Printable)

Key: MJAVADOC-257
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Vincent Siveton
Reporter: jcrouvi
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Maven 2.x Javadoc Plugin

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

Created: 28/Aug/09 02:10 AM   Updated: 14/Sep/09 06:06 AM   Resolved: 10/Sep/09 07:33 AM
Return to search
Component/s: None
Affects Version/s: 2.5, 2.6
Fix Version/s: 2.6.1

Time Tracking:
Not Specified

File Attachments: 1. File MJAVADOC-257.diff (5 kB)

Environment:
Apache Maven 2.2.0
Java version: 1.6.0_11
Issue Links:
Duplicate
 


 Description  « Hide

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



Vincent Siveton added a comment - 29/Aug/09 03:57 PM

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


Vincent Siveton added a comment - 29/Aug/09 04:06 PM

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


jcrouvi added a comment - 31/Aug/09 01:45 AM

@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.


Vincent Siveton added a comment - 01/Sep/09 06:41 AM

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


Vincent Siveton made changes - 01/Sep/09 06:41 AM
Field Original Value New Value
Attachment MJAVADOC-257.diff [ 44169 ]
Vincent Siveton added a comment - 06/Sep/09 05:39 PM

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


Vincent Siveton made changes - 06/Sep/09 05:39 PM
Assignee Vincent Siveton [ siveton ]
Resolution Fixed [ 1 ]
Fix Version/s 2.6.1 [ 14533 ]
Status Open [ 1 ] Closed [ 6 ]
Olivier Lamy added a comment - 07/Sep/09 04:37 PM

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.


Olivier Lamy made changes - 07/Sep/09 04:37 PM
Status Closed [ 6 ] Reopened [ 4 ]
Resolution Fixed [ 1 ]
Vincent Siveton made changes - 10/Sep/09 07:33 AM
Resolution Fixed [ 1 ]
Status Reopened [ 4 ] Closed [ 6 ]
Vincent Siveton made changes - 14/Sep/09 06:06 AM
Link This issue is duplicated by MJAVADOC-145 [ MJAVADOC-145 ]