1.源碼分析
1
|
< artifactId >maven-pmd-plugin</ artifactId > |
2.代碼格式檢查
1
|
< artifactId >maven-checkstyle-plugin</ artifactId > |
3.代碼相似度檢查
1
2
|
< groupId >org.codehaus.mojo</ groupId > < artifactId >simian-maven-plugin</ artifactId > |
4.格式化統計報告
1
2
|
< groupId >org.codehaus.mojo</ groupId > < artifactId >jdepend-maven-plugin</ artifactId > |
5.FireBug檢查
1
2
|
< groupId >org.codehaus.mojo</ groupId > < artifactId >findbugs-maven-plugin</ artifactId > |
6.JavaDoc
1
|
< artifactId >maven-javadoc-plugin</ artifactId > |
7.生成Java代碼交叉引用和源代碼的html格式
1
|
< artifactId >maven-jxr-plugin</ artifactId > |
8.代碼覆蓋率
1
2
3
4
5
|
< groupId >org.codehaus.mojo</ groupId > < artifactId >cobertura-maven-plugin</ artifactId > < groupId >org.codehaus.mojo</ groupId > < artifactId >emma-maven-plugin</ artifactId > |
9.Java代碼的度量工具
1
2
|
< groupId >org.codehaus.mojo</ groupId > < artifactId >javancss-maven-plugin</ artifactId > |
10.單元測試報告
1
|
< artifactId >maven-surefire-report-plugin</ artifactId > |
11.TODO檢查報告
1
2
|
< groupId >org.codehaus.mojo</ groupId > < artifactId >taglist-maven-plugin</ artifactId > |
12.項目總報告
1
|
< artifactId >maven-project-info-reports-plugin</ artifactId > |
=========Maven Common Plugin=========
1.SCP文件傳輸
1
2
|
< groupId >com.github.goldin</ groupId > < artifactId >copy-maven-plugin</ artifactId > |
2.SSH命令
1
2
|
< groupId >com.github.goldin</ groupId > < artifactId >sshexec-maven-plugin</ artifactId > |
3.Maven Job
1
2
|
< groupId >com.github.goldin</ groupId > < artifactId >jenkins-maven-plugin</ artifactId > |
4.生成about信息
1
2
|
< groupId >com.github.goldin</ groupId > < artifactId >about-maven-plugin</ artifactId > |
5.查找重復依賴
1
2
|
< groupId >com.github.goldin</ groupId > < artifactId >duplicates-finder-plugin</ artifactId > |
6.Maven郵件發送
1
2
|
< groupId >com.github.goldin</ groupId > < artifactId >mail-maven-plugin</ artifactId > |
7.項目目錄查找
1
2
|
< groupId >com.github.goldin</ groupId > < artifactId >find-maven-plugin</ artifactId > |
8.獲取SVN版本
1
2
|
< groupId >com.google.code.maven-svn-revision-number-plugin</ groupId > < artifactId >maven-svn-revision-number-plugin</ artifactId > |
9.編譯C++
1
2
|
< groupId >org.codehaus.mojo</ groupId > < artifactId >native-maven-plugin</ artifactId > |
10.DDL生成
1
2
|
< groupId >org.codehaus.mojo</ groupId > < artifactId >hibernate3-maven-plugin</ artifactId > |
11.Eclipse RCP
1
2
|
< groupid >org.sonatype.tycho</ groupid > < artifactid >target-platform-configuration</ artifactid > |
=========Maven Official Plugin=========
1.自動定義打包
1
|
< artifactId >maven-assembly-plugin</ artifactId > |
2.ANT
1
|
< artifactId >maven-antrun-plugin</ artifactId > |
=========Maven 全局屬性=========
1.源碼編碼
1
2
3
4
5
|
< project.build.sourceEncoding >UTF-8</ project.build.sourceEncoding > maven.compile.classpath maven.runtime.classpath maven.test.classpath maven.plugin.classpath |
2.ClassPath
1
2
3
4
|
maven.compile.classpath maven.runtime.classpath maven.test.classpath maven.plugin.classpath |
=========Maven 插件報表=========
maven-site-plugin
這個插件是一個負責為Java項目生成靜態HTML網站的插件。這個插件非常的有用,里面可以嵌入各種插件,比如用來對代碼檢查bug的findbugs,檢查代碼風格的checkstyle,生成testng測試報告的surefire等。
先來看一下關于這個插件的配置的一個例子:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
< plugin > < groupId >org.apache.maven.plugins</ groupId > < artifactId >maven-site-plugin</ artifactId > < version >3.5.1</ version > < configuration > < reportPlugins > < plugin > < groupId >org.codehaus.mojo</ groupId > < artifactId >findbugs-maven-plugin</ artifactId > < version >3.0.1</ version > </ plugin > < plugin > < groupId >org.apache.maven.plugins</ groupId > < artifactId >maven-pmd-plugin</ artifactId > < version >3.6</ version > </ plugin > < plugin > < groupId >org.codehaus.mojo</ groupId > < artifactId >taglist-maven-plugin</ artifactId > < version >2.4</ version > < configuration > < tags > < tag >fixme</ tag > < tag >FixMe</ tag > < tag >FIXME</ tag > < tag >@todo</ tag > < tag >todo</ tag > < tag >TODO</ tag > < tag >@deprecated</ tag > </ tags > </ configuration > </ plugin > </ reportPlugins > </ configuration > </ plugin > |
site 插件例子中還可以添加很多其他插件,然后生成報告。
如有疑問請留言或者到本站社區交流討論,感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!
原文鏈接:http://blog.csdn.net/catoop/article/details/68961206