本文链接:http://blog.youkuaiyun.com/kongxx/article/details/7757578
最后看看maven的Dashboard插件集成,首先修改工程的pom.xml文件,添加dashboard-maven-plugin插件,如下:
- <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>
- mvn site
- mvn dashboard:dashboard
- <project>
- ...
- <properties>
- <checkstyle.config.location>config/maven_checks.xml</checkstyle.config.location>
- </properties>
- ...
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <version>2.9.1</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
- <version>2.5.1</version>
- <configuration>
- <xmlOutput>true</xmlOutput>
- <effort>Max</effort>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- <version>2.5.1</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>dashboard-maven-plugin</artifactId>
- <version>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>
- mvn package
- mvn findbugs:findbugs
- mvn checkstyle:checkstyle
- mvn cobertura:cobertura
- mvn dashboard:dashboard