Uploaded image for project: 'Maven Javadoc Plugin'
  1. Maven Javadoc Plugin
  2. MJAVADOC-335

In Maven 3 it is impossible to generate several JavaDoc reports at once

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.8
    • None
    • None
    • None
    • Maven 3.0.3

    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.

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

      Attachments

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              antonius Antonius Ng
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: