[ 
http://jira.codehaus.org/browse/MJAVADOC-229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Siveton closed MJAVADOC-229.
------------------------------------

    Resolution: Not A Bug

I tried to call "mvn javadoc:javadoc" on the camel-web project, rev 793860 [1].
I just added the fusesource repo [2] for maven-jaxb-schemagen-plugin and lock 
down the javadoc-plugin to 2.5.

I always get the following error with Maven 2.0.9, 2.0.10, 2.1 and 2.2:
{noformat}
[INFO] An error has occurred in JavaDocs report generation:Exit code: 1 - 
javadoc: error - invalid flag: -author
{noformat}

It is the correct behaviour and as Peter said, you need to add the 
useStandardDocletOptions parameter using specific doclet:
{noformat}
  <useStandardDocletOptions>false</useStandardDocletOptions>
{noformat}

[1] http://svn.apache.org/repos/asf/camel/trunk/components/camel-web
[2] http://repo.fusesource.com/maven2/

> javadoc:javadoc goal fails with Maven 2.0.10 or 2.1.0, but works with 2.0.9
> ---------------------------------------------------------------------------
>
>                 Key: MJAVADOC-229
>                 URL: http://jira.codehaus.org/browse/MJAVADOC-229
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5
>         Environment: Mac OS X 10.5.6
> Java 1.5.0_16
> Maven 2.0.10 or 2.1.0
> maven-javadoc-plugin 2.5
>            Reporter: Jonathan Harlap
>
> Attempting to use the maven-javadoc-plugin with a pom.xml that works with 
> Maven 2.0.9 fails to work with 2.0.10 or 2.1.0.  The error message produced 
> is:
> [INFO] An error has occurred in JavaDocs report generation:Exit code: 1 - 
> javadoc: error - invalid flag: -author
> The javadoc plugin configuration from the pom.xml is:
> {code:xml}
> <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-javadoc-plugin</artifactId>
>       <executions>
>               <execution>
>                       <goals>
>                               <goal>javadoc</goal>
>                       </goals>
>                       <phase>compile</phase>
>               </execution>
>       </executions>
>       <configuration>
>               <encoding>UTF-8</encoding>
>               <verbose>false</verbose>
>               <show>public</show>
>               <subpackages>com.sinfoma.sintransfer.rest.services.resources
>               </subpackages>
>               <doclet>com.sun.jersey.wadl.resourcedoc.ResourceDoclet
>               </doclet>
>               <docletArtifacts>
>                       <docletArtifact>
>                               <groupId>com.sun.jersey.contribs</groupId>
>                               <artifactId>wadl-resourcedoc-doclet
>                               </artifactId>
>                               <version>${jersey-release-version}
>                               </version>
>                       </docletArtifact>
>                       <!--
>                               Also specify jersey and xerces as doclet 
> artifacts as the
>                               ResourceDoclet uses classes provided by them to 
> generate the
>                               resourcedoc.
>                       -->
>                       <docletArtifact>
>                               <groupId>com.sun.jersey</groupId>
>                               <artifactId>jersey-server</artifactId>
>                               <version>${jersey-release-version}
>                               </version>
>                       </docletArtifact>
>                       <docletArtifact>
>                               <groupId>xerces</groupId>
>                               <artifactId>xercesImpl</artifactId>
>                               <version>2.9.1</version>
>                       </docletArtifact>
>               </docletArtifacts>
>               <additionalparam>-output 
> ${project.build.outputDirectory}/resourcedoc.xml</additionalparam>
>       </configuration>
> </plugin>
> {code}
> With the following additional configuration in the active profile:
> {code:xml}
> <plugin>
>       <groupId>org.apache.maven.plugins
>       </groupId>
>       <artifactId>maven-javadoc-plugin</artifactId>
>       <configuration>
>               <docletArtifacts>
>                       <docletArtifact>
>                               <groupId>com.sun.jersey.contribs
>                               </groupId>
>                               <artifactId>maven-wadl-plugin</artifactId>
>                               <version>${jersey-release-version}
>                               </version>
>                       </docletArtifact>
>                       <docletArtifact>
>                               <groupId>com.sun.jersey.contribs
>                               </groupId>
>                               <artifactId>wadl-resourcedoc-doclet
>                               </artifactId>
>                               <version>${jersey-release-version}
>                               </version>
>                       </docletArtifact>
>                       <!--
>                               Also specify jersey and xerces as doclet 
> artifacts as the
>                               ResourceDoclet uses classes provided by them to 
> generate the
>                               resourcedoc.
>                       -->
>                       <docletArtifact>
>                               <groupId>com.sun.jersey</groupId>
>                               <artifactId>jersey-server</artifactId>
>                               <version>${jersey-release-version}
>                               </version>
>                       </docletArtifact>
>                       <docletArtifact>
>                               <groupId>xerces</groupId>
>                               <artifactId>xercesImpl</artifactId>
>                               <version>2.9.1</version>
>                       </docletArtifact>
>                       <docletArtifact>
>                               <groupId>javax.xml.bind</groupId>
>                               <artifactId>jaxb-api</artifactId>
>                               <version>2.1</version>
>                       </docletArtifact>
>                       <docletArtifact>
>                               <groupId>com.sun.xml.bind</groupId>
>                               <artifactId>jaxb-impl</artifactId>
>                               <version>2.1.10</version>
>                       </docletArtifact>
>                       <docletArtifact>
>                               <groupId>javax.activation</groupId>
>                               <artifactId>activation</artifactId>
>                               <version>1.1</version>
>                       </docletArtifact>
>                       <docletArtifact>
>                               <groupId>javax.xml.stream</groupId>
>                               <artifactId>stax-api</artifactId>
>                               <version>1.0</version>
>                       </docletArtifact>
>               </docletArtifacts>
>       </configuration>
> </plugin>
> {code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to