[ 
https://jira.codehaus.org/browse/MJAVADOC-335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=307799#comment-307799
 ] 

Lance Speelmon edited comment on MJAVADOC-335 at 4/14/14 4:32 PM:
------------------------------------------------------------------

FYI - this is another example of configuring the new way and only the last 
report being generated:

{code}
      <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>
{code}



was (Author: lancespeelmon2):
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 Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.8
>         Environment: Maven 3.0.3
>            Reporter: Anton Nikitin
>            Assignee: Herve Boutemy
>
> 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 was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to