[ https://jira.codehaus.org/browse/MSHARED-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=316890#comment-316890 ]
Max Schaefer commented on MSHARED-271: -------------------------------------- I found the problem located in DefaultMavenReportExecutor. In the method buildReportPlugin the invocation of goalsWithConfiguration.put(report, reportSet.getConfiguration()); overrides the different reportsets because "report" contains the report goal. Could be changed to reportSet.getId() + ":" + report in order to keep all reportsets. Some lines after that the lookup of the goal would need to be changed, too e.g. split the string again. > Multiple reportSets don't work > ------------------------------ > > Key: MSHARED-271 > URL: https://jira.codehaus.org/browse/MSHARED-271 > Project: Maven Shared Components > Issue Type: Bug > Components: maven-reporting-exec > Affects Versions: maven-reporting-exec-1.0.2 > Environment: maven 3.0.4 > maven-site-plugin 3.2 > Reporter: Max Schaefer > Priority: Critical > Attachments: test.zip > > > Having several report sets only the last one is created. > Example: Create java doc report twice, with different parameters. First time > with deprecated api list, second time without. > Expected behaviour: The two directories are created with the different > javadocs. > However, currently onle one directory is created. > ... > <reporting> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-javadoc-plugin</artifactId> > <version>2.9</version> > <reportSets> > <reportSet> > <id>without-deprecations</id> > <configuration> > <reportOutputDirectory>${project.reporting.outputDirectory}/myoutput</reportOutputDirectory> > <destDir>myapidocs-without-deprecations</destDir> > <nodeprecatedlist>true</nodeprecatedlist> > </configuration> > <reports> > <report>javadoc</report> > </reports> > </reportSet> > <reportSet> > <id>with-deprecations</id> > <configuration> > <reportOutputDirectory>${project.reporting.outputDirectory}/myoutput</reportOutputDirectory> > <destDir>myapidocs-with-deprecations</destDir> > <nodeprecatedlist>false</nodeprecatedlist> > </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