Maven2 用于度量和品質(zhì)保證的插件
- checkstyle 檢查編碼風(fēng)格
- 常用的goal
- checkstyle:checkstyle
- 備注
- 可以用eclipse-cs編輯檢查規(guī)則http://eclipse-cs.sourceforge.net/index.shtml
- surefire-report 生成單元測試報(bào)告
- 常用的goal
- surefire-report:report
- jdepend 生成包的度量報(bào)告
- 常用的goal
- jdepend:generate
- findbugs 檢查潛在的缺陷
- 常用的goal
- findbugs:findbugs
- cobertura 生成測試覆蓋率報(bào)告
- 常用的goal
- cobertura:cobertura
- 備注
- 直接從官方鏡像下載的版本有個(gè)bug,不能正確生成報(bào)告(參見http://jira.codehaus.org/browse/MCOBERTURA-61)可以下載補(bǔ)丁后的jar替換本地repository的
- jdk1.4對應(yīng)的補(bǔ)丁: http://dist.codehaus.org/mule/dependencies/maven2/cobertura/cobertura/1.8/cobertura-1.8.jar
- jdk5對應(yīng)的補(bǔ)丁:http://www.artofsolving.com/files/m2/cobertura-1.8.jar
以上是一些常用的用于品質(zhì)管理的插件。默認(rèn)情況下都不用配置,相當(dāng)方便。如果需要手動(dòng)配置的話,根據(jù)網(wǎng)上的文檔也相當(dāng)容易配置。
apache的maven plugin頁面: http://maven.apache.org/plugins/
codehaus mojo 頁面: http://mojo.codehaus.org
posted on 2007-05-28 14:32 GHawk 閱讀(1561) 評論(1) 編輯 收藏 所屬分類: 其他