Before using, setup your project as described here: Standard Usage
Warning : The Dashboard plugin does not use an embedded database.
In order to use the Dashboard plugin with historic support, you have to respect the following steps :
To add database support for dashboard plugin, you must configure the plugin in the build section in the POM as :
<project>
[...]
<build>
[...]
<plugins>
[...]
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>dashboard-maven-plugin</artifactId>
<!--jar file that has the jdbc driver -->
<dependencies>
<dependency>
<groupId>xxxx</groupId>
<artifactId>xxxxx</artifactId>
<version>xxxx</version>
</dependency>
</dependencies>
<!-- common configurations -->
<configuration>
<!-- set the hibernate dialect for your specific database -->
<dialect>xxx</dialect>
<!-- database driver classname -->
<driverClass>xxxx</driverClass>
<!-- database URL -->
<connectionUrl>xxxx</connectionUrl>
<!-- database username -->
<username>xxxx</username>
<!-- database password -->
<password>xxxx</password>
</configuration>
</plugin>
[...]
</plugins>
[...]
</build>
[...]
</project>
See this example to use an Apache Derby database :
[...] <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>dashboard-maven-plugin</artifactId> <version>1.0-SNAPSHOT</version> <configuration> <dialect>org.hibernate.dialect.DerbyDialect</dialect> <driverClass> org.apache.derby.jdbc.ClientDriver </driverClass> <connectionUrl> jdbc:derby://localhost:1527/myDB;create=true </connectionUrl> <username>usr</username> <password>usr</password> </configuration> <dependencies> <dependency> <groupId>org.apache.derby</groupId> <artifactId>derbyclient</artifactId> <version>10.2.1.6</version> </dependency> </dependencies> </plugin> </plugins> </build> [...]
To generate the site and the correct dashboard report with historic view, you must run the dashboard report plugin in 3 passes :