This article link: http://blog.csdn.net/kongxx/article/details/7757578
Finally look at MAVEN's dashboard plug-in integration, first modifying the project's Pom.xml file, adding Dashboard-maven-plugin Plug-ins, as follows:
<project> ...
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>dashboard-maven-plugin</artifactId>
<version>1.0.0-beta-1</version >
</plugin>
</plugins>
</reporting>
...
</project>
The specific commands for the dashboard plug-in are as follows
MVN site
mvn dashboard:dashboard
Here is a snippet of my pom.xml file using the plugins described in the previous articles and the dashboard plug-ins.
<project> ... <properties> <checkstyle.config.location>config/maven_checks.xml</check Style.config.location> </properties> ... <reporting> <plugins> <PL Ugin> <groupId>org.apache.maven.plugins</groupId> <artifactid>maven-c
Heckstyle-plugin</artifactid> <version>2.9.1</version> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId> Findbugs-maven-plugin</artifactid> <version>2.5.1</version> <configur
Ation> <xmlOutput>true</xmlOutput> <effort>Max</effort> </configuration> </plugin> <plugin> <groupi D>org.codehaus.mojo&lT;/groupid> <artifactId>cobertura-maven-plugin</artifactId> <version> 2.5.1</version> </plugin> <plugin> <groupid>org.codehaus. Mojo</groupid> <artifactId>dashboard-maven-plugin</artifactId> <versi on>1.0.0-beta-1</version> </plugin> <plugin> <groupId>
Org.apache.maven.plugins</groupid> <artifactId>maven-jxr-plugin</artifactId>
<version>2.3</version> </plugin> </plugins> </reporting>
<pluginRepositories> <pluginRepository> <id>codehaus repository</id> <url>http://repository.codehaus.org/</url> </pluginRepository> </pluginrepositories > </project>
Run the following command individually
MVN package
mvn findbugs:findbugs
mvn, Checkstyle:checkstyle mvn cobertura:cobertura mvn
: Dashboard
Then open the dashboard page to view the results in the Target/site directory.