You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by SEAN MCELROY <se...@btinternet.com> on 2014/08/19 15:42:37 UTC

Maven Site Not Generating JavaDoc

Hello,

I am using maven 3.1.1 and I can get the maven-site-plugin to generate any java doc. The javadoc plugin works fine on it's own.
I've tried all sorts of different configurations but haven't managed to generate and javadoc. 

Here is my current configuration. All help appreciated.

          <plugins>
              <plugin>              
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>3.4</version>   
                <configuration>
                    <reporting>
                        <excludeDefaults>true</excludeDefaults>
                        <outputDirectory>${project.build.directory}/site</outputDirectory>
                        <plugins>
                          <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-project-info-reports-plugin</artifactId>
                            <version>2.7</version>
                            <configuration>
                              <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
                              <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
                            </configuration>
                            <reportSets>
                              <reportSet>
                                <reports>
                                  <report>dependencies</report>
                                  <report>scm</report>
                                </reports>
                              </reportSet>
                            </reportSets>
                          </plugin>                        
                          <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-javadoc-plugin</artifactId>
                            <version>2.9</version> 
                            <configuration>
                                <outputDirectory>${project.build.directory}/javadoc</outputDirectory>
                                <reportOutputDirectory>${project.reporting.outputDirectory}/javadoc</reportOutputDirectory>
                            </configuration>                   
                          </plugin>
                        </plugins>
                    </reporting>
             </configuration>
           </plugin>  
          </plugins>

Re: Maven Site Not Generating JavaDoc

Posted by Hervé BOUTEMY <he...@free.fr>.
this is not <reporting> but <reportPlugins>

but in fact, you should not use this but use standard pom's reporting section 
instead of m-site-p configuration: see http://maven.apache.org/plugins/maven-site-plugin/maven-3.html#Configuration_formats

Regards,

Hervé

Le mardi 19 août 2014 14:42:37 SEAN MCELROY a écrit :
> Hello,
> 
> I am using maven 3.1.1 and I can get the maven-site-plugin to generate any
> java doc. The javadoc plugin works fine on it's own. I've tried all sorts
> of different configurations but haven't managed to generate and javadoc.
> 
> Here is my current configuration. All help appreciated.
> 
>           <plugins>
>               <plugin>              
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-site-plugin</artifactId>
>                 <version>3.4</version>   
>                 <configuration>
>                     <reporting>
>                         <excludeDefaults>true</excludeDefaults>
>                        
> <outputDirectory>${project.build.directory}/site</outputDirectory>
> <plugins>
>                           <plugin>
>                             <groupId>org.apache.maven.plugins</groupId>
>                            
> <artifactId>maven-project-info-reports-plugin</artifactId>
> <version>2.7</version>
>                             <configuration>
>                              
> <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
> <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
> </configuration>
>                             <reportSets>
>                               <reportSet>
>                                 <reports>
>                                   <report>dependencies</report>
>                                   <report>scm</report>
>                                 </reports>
>                               </reportSet>
>                             </reportSets>
>                           </plugin>                        
>                           <plugin>
>                             <groupId>org.apache.maven.plugins</groupId>
>                             <artifactId>maven-javadoc-plugin</artifactId>
>                             <version>2.9</version> 
>                             <configuration>
>                                
> <outputDirectory>${project.build.directory}/javadoc</outputDirectory>
> <reportOutputDirectory>${project.reporting.outputDirectory}/javadoc</report
> OutputDirectory> </configuration>
>                           </plugin>
>                         </plugins>
>                     </reporting>
>              </configuration>
>            </plugin>  
>           </plugins>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org