About Standard Usage of Maven Dashboard Report Plugin

Configuring the Dashboard report

To add this report to your site, you must add the plugin to the special reporting section in the POM as the last report .

       
<reporting>
	<plugins>
		...
		<plugin>
			<groupId>org.codehaus.mojo</groupId>
			<artifactId>dashboard-maven-plugin</artifactId>
		</plugin>
		...
	</plugins>
</reporting>
       
      	

WARNING : be sure to add this repository to retreive this plugin

       
<pluginRepositories>
	<pluginRepository>
		<id>Codehaus repository</id>
		<url>http://repository.codehaus.org/</url>
	</pluginRepository>
</pluginRepositories>
				
      	

To generate the site and the correct dashboard report, you must run the dashboard report plugin in 2 passes :

  1. mvn site
    1. generate the site .
    2. let each report plugin generate its xml file.
    3. add the dashboard report item in the left menu.
  2. mvn dashboard:dashboard
    1. aggregate all results of each report.
    2. re-generate the dashboard HTML file.