[
https://jira.codehaus.org/browse/MJAVADOC-335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Herve Boutemy updated MJAVADOC-335:
-----------------------------------
Description:
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.
{code:xml} <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>
{code}
was:
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>
> 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.
> {code:xml} <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>
> {code}
--
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