You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Lance Speelmon (JIRA)" <ji...@codehaus.org> on 2012/09/05 17:38:21 UTC
[jira] (MJAVADOC-335) In Maven 3 it is impossible to generate
several JavaDoc reports at once
[ https://jira.codehaus.org/browse/MJAVADOC-335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=307799#comment-307799 ]
Lance Speelmon commented on MJAVADOC-335:
-----------------------------------------
FYI - this is another example of configuring the new way and only the last report being generated:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<reportPlugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<configuration>
<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<reportSets>
<reportSet>
<id>html</id>
<reports>
<report>javadoc</report>
</reports>
</reportSet>
<reportSet>
<id>jaxb</id>
<configuration>
<doclet>com.lunatech.doclets.jax.jaxb.JAXBDoclet</doclet>
<docletArtifacts>
<docletArtifact>
<groupId>com.lunatech.jax-doclets</groupId>
<artifactId>doclets</artifactId>
<version>0.10.0</version>
</docletArtifact>
</docletArtifacts>
<destDir>jaxbdocs</destDir>
<reportOutputDirectory>jaxbdocs</reportOutputDirectory>
</configuration>
<reports>
<report>javadoc</report>
</reports>
</reportSet>
<reportSet>
<configuration>
<doclet>com.lunatech.doclets.jax.jaxrs.JAXRSDoclet</doclet>
<docletArtifacts>
<docletArtifact>
<groupId>com.lunatech.jax-doclets</groupId>
<artifactId>doclets</artifactId>
<version>0.10.0</version>
</docletArtifact>
</docletArtifacts>
<destDir>jaxrsdocs</destDir>
<reportOutputDirectory>jaxrsdocs</reportOutputDirectory>
</configuration>
<reports>
<report>javadoc</report>
</reports>
</reportSet>
<reportSet>
<id>jpa</id>
<configuration>
<doclet>com.lunatech.doclets.jax.jpa.JPADoclet</doclet>
<docletArtifacts>
<docletArtifact>
<groupId>com.lunatech.jax-doclets</groupId>
<artifactId>doclets</artifactId>
<version>0.10.0</version>
</docletArtifact>
</docletArtifacts>
<destDir>jpadocs</destDir>
<reportOutputDirectory>jpadocs</reportOutputDirectory>
</configuration>
<reports>
<report>javadoc</report>
</reports>
</reportSet>
</reportSets>
</plugin>
> In Maven 3 it is impossible to generate several JavaDoc reports at once
> -----------------------------------------------------------------------
>
> Key: MJAVADOC-335
> URL: https://jira.codehaus.org/browse/MJAVADOC-335
> Project: Maven 2.x Javadoc Plugin
> Issue Type: Bug
> Affects Versions: 2.8
> Environment: Maven 3.0.3
> Reporter: Anton Nikitin
>
> When I try to generate several JavaDoc reports using mvn site(see pom.xml fragment below), only last one is actually created.
> It works perfectly in Maven 2.2.1 and looks broken in Maven 3.0.3. I tried to change pom.xml to Maven 3 style (use Maven Site Plugin <reportPlugins> section instead of <reporting>) but it didn't help.
> Workaround: use Maven 2.2.1 for site generation.
> <reporting>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-javadoc-plugin</artifactId>
> <version>2.8</version>
> <reportSets>
> <reportSet>
> <id>report-1</id>
> <configuration>
> <destDir>docs1</destDir>
> ...
> </configuration>
> <reports>
> <report>javadoc</report>
> </reports>
> </reportSet>
> <reportSet>
> <id>report-2</id>
> <configuration>
> <destDir>docs2</destDir>
> ...
> </configuration>
> <reports>
> <report>javadoc</report>
> </reports>
> </reportSet>
> </reportSets>
> </plugin>
> </plugins>
> </reporting>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira