Maven2 用于度量和品質保證的插件
- checkstyle 檢查編碼風格
- 常用的goal
- checkstyle:checkstyle
- 備注
- 可以用eclipse-cs編輯檢查規則http://eclipse-cs.sourceforge.net/index.shtml
- surefire-report 生成單元測試報告
- 常用的goal
- surefire-report:report
- jdepend 生成包的度量報告
- 常用的goal
- jdepend:generate
- findbugs 檢查潛在的缺陷
- 常用的goal
- findbugs:findbugs
- cobertura 生成測試覆蓋率報告
- 常用的goal
- cobertura:cobertura
- 備注
- 直接從官方鏡像下載的版本有個bug,不能正確生成報告(參見http://jira.codehaus.org/browse/MCOBERTURA-61)可以下載補丁后的jar替換本地repository的
以上是一些常用的用于品質管理的插件。默認情況下都不用配置,相當方便。如果需要手動配置的話,根據網上的文檔也相當容易配置。
apache的maven plugin頁面: http://maven.apache.org/plugins/
codehaus mojo 頁面: http://mojo.codehaus.org
posted on 2007-05-28 14:32 GHawk 閱讀(1562) 評論(1) 編輯 收藏 所屬分類: 其他