Total Pageviews

Thursday, June 22, 2006

Missing index.html when generating site with Maven2

For those of you who are using selected individual reports when generating the project site with Maven, there is a slight change in the behaviour of Maven since Maven Site plugin 2.0-beta-5:
You have to specify the index report if you would like to have the index.html files generated. This is necessary for those modules, who don't have a index page written in xdoc, or apt..
Make sure to update the project-info-report Plugin to version 2.0.1!
Here is a sample configuration:
 <plugin>   
 <groupId>org.apache.maven.plugins</groupId>   
 <artifactId>maven-project-info-reports-plugin</artifactId>   
  <reportSets>     
  <reportSet>      
  <reports>       
  <report>dependencies</report>       
  <report>project-team</report>        
  <report>mailing-list</report>        
  <report>cim</report>        
  <report>issue-tracking</report>        
  <report>license</report>        
  <report>scm</report>  
  <report>index</report>  
  </reports>     
  </reportSet>   
  </reportSets>  
  </plugin>