=========Maven Report Plugin=========
1.源码分析
<artifactId>maven-pmd-pluginartifactId>
2.代码格式检查
<artifactId>maven-checkstyle-pluginartifactId>
3.代码相似度检查
<groupId>org.codehaus.mojogroupId>
<artifactId>simian-maven-pluginartifactId>
4.格式化统计报告
<groupId>org.codehaus.mojogroupId>
<artifactId>jdepend-maven-pluginartifactId>
5.FireBug检查
<groupId>org.codehaus.mojogroupId>
<artifactId>findbugs-maven-pluginartifactId>
6.JavaDoc
<artifactId>maven-javadoc-pluginartifactId>
7.生成java代码交叉引用和源代码的html格式
<artifactId>maven-jxr-pluginartifactId>
8.代码覆盖率
<groupId>org.codehaus.mojogroupId>
<artifactId>cobertura-maven-pluginartifactId>
<groupId>org.codehaus.mojogroupId>
<artifactId>emma-maven-pluginartifactId>
9.Java代码的度量工具
<groupId>org.codehaus.mojogroupId>
<artifactId>javancss-maven-pluginartifactId>
10.单元测试报告
<artifactId>maven-surefire-report-plugin</artifactId>
11.TODO检查报告
<groupId>org.codehaus.mojogroupId>
<artifactId>taglist-maven-pluginartifactId>
12.项目总报告
<artifactId>maven-project-info-reports-plugin</artifactId>
=========Maven Common Plugin=========
1.SCP文件传输
<groupId>com.github.goldingroupId>
<artifactId>copy-maven-pluginartifactId>
2.SSH命令
<groupId>com.github.goldingroupId>
<artifactId>sshexec-maven-pluginartifactId>
3.Maven Job
<groupId>com.github.goldingroupId>
<artifactId>jenkins-maven-pluginartifactId>
4.生成about信息
<groupId>com.github.goldingroupId>
<artifactId>about-maven-pluginartifactId>
5.查找重复依赖
<groupId>com.github.goldingroupId>
<artifactId>duplicates-finder-pluginartifactId>
6.Maven邮件发送
<groupId>com.github.goldingroupId>
<artifactId>mail-maven-pluginartifactId>
7.项目目录查找
<groupId>com.github.goldingroupId>
<artifactId>find-maven-pluginartifactId>
8.获取SVN版本
<groupId>com.google.code.maven-svn-revision-number-plugin</groupId>
<artifactId>maven-svn-revision-number-plugin</artifactId>
9.编译C++
<groupId>org.codehaus.mojogroupId>
<artifactId>native-maven-pluginartifactId>
10.DDL生成
<groupId>org.codehaus.mojogroupId>
<artifactId>hibernate3-maven-pluginartifactId>
11.Eclipse RCP
<groupid>org.sonatype.tychogroupid>
<artifactid>target-platform-configurationartifactid>
=========Maven Official Plugin=========
1.自动定义打包
<artifactId>maven-assembly-pluginartifactId>
2.ANT
<artifactId>maven-antrun-pluginartifactId>
=========Maven 全局属性=========
1.源码编码
.build.sourceEncoding>UTF-8 .build.sourceEncoding>
maven.compile.classpath
maven.runtime.classpath
maven.test.classpath
maven.plugin.classpath
2.ClassPath
maven.compile.classpath
maven.runtime.classpath
maven.test.classpath
maven.plugin.classpath
=========Maven 插件报表=========
maven-site-plugin
这个插件是一个负责为Java项目生成静态HTML网站的插件。这个插件非常的有用,里面可以嵌入各种插件,比如用来对代码检查bug的findbugs,检查代码风格的checkstyle,生成testng测试报告的surefire等。
先来看一下关于这个插件的配置的一个例子:
<plugin>
<groupId>org.apache.maven.pluginsgroupId>
<artifactId>maven-site-pluginartifactId>
<version>3.5.1version>
<configuration>
<reportPlugins>
<plugin>
<groupId>org.codehaus.mojogroupId>
<artifactId>findbugs-maven-pluginartifactId>
<version>3.0.1version>
plugin>
<plugin>
<groupId>org.apache.maven.pluginsgroupId>
<artifactId>maven-pmd-pluginartifactId>
<version>3.6version>
plugin>
<plugin>
<groupId>org.codehaus.mojogroupId>
<artifactId>taglist-maven-pluginartifactId>
<version>2.4version>
<configuration>
<tags>
<tag>fixmetag>
<tag>FixMetag>
<tag>FIXMEtag>
<tag>@todotag>
<tag>todotag>
<tag>TODOtag>
<tag>@deprecatedtag>
tags>
configuration>
plugin>
reportPlugins>
configuration>
plugin>
site 插件例子中还可以添加很多其他插件,然后生成报告。