Maven常用插件
- 博客分类:
- 备份
=========Maven Report Plugin=========
1.源码分析
2.代码格式检查
3.代码相似度检查
4.格式化统计报告
5.FireBug检查
6.JavaDoc
7.生成java代码交叉引用和源代码的html格式
8.代码覆盖率
9.java代码的度量工具
10.单元测试报告
11.TODO检查报告
12.项目总报告
=========Maven Common Plugin=========
1.SCP文件传输
2.SSH命令
3.Maven Job
4.生成about信息
5.查找重复依赖
6.Maven邮件发送
7.项目目录查找
8.获取SVN版本
9.编译C++
10.DDL生成
11.Eclipse RCP
=========Maven Official Plugin=========
1.自动定义打包
2.ANT
=========Maven 全局属性=========
1.源码编码
2.ClassPath
1.源码分析
- <artifactId>maven-pmd-plugin</artifactId>
<artifactId>maven-pmd-plugin</artifactId>
2.代码格式检查
- <artifactId>maven-checkstyle-plugin</artifactId>
<artifactId>maven-checkstyle-plugin</artifactId>
3.代码相似度检查
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>simian-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>simian-maven-plugin</artifactId>
4.格式化统计报告
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>jdepend-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jdepend-maven-plugin</artifactId>
5.FireBug检查
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
6.JavaDoc
- <artifactId>maven-javadoc-plugin</artifactId>
<artifactId>maven-javadoc-plugin</artifactId>
7.生成java代码交叉引用和源代码的html格式
- <artifactId>maven-jxr-plugin</artifactId>
<artifactId>maven-jxr-plugin</artifactId>
8.代码覆盖率
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>emma-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>emma-maven-plugin</artifactId>
9.java代码的度量工具
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>javancss-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>javancss-maven-plugin</artifactId>
10.单元测试报告
- <artifactId>maven-surefire-report-plugin</artifactId>
<artifactId>maven-surefire-report-plugin</artifactId>
11.TODO检查报告
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>taglist-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>taglist-maven-plugin</artifactId>
12.项目总报告
- <artifactId>maven-project-info-reports-plugin</artifactId>
<artifactId>maven-project-info-reports-plugin</artifactId>
=========Maven Common Plugin=========
1.SCP文件传输
- <groupId>com.github.goldin</groupId>
- <artifactId>copy-maven-plugin</artifactId>
<groupId>com.github.goldin</groupId>
<artifactId>copy-maven-plugin</artifactId>
2.SSH命令
- <groupId>com.github.goldin</groupId>
- <artifactId>sshexec-maven-plugin</artifactId>
<groupId>com.github.goldin</groupId>
<artifactId>sshexec-maven-plugin</artifactId>
3.Maven Job
- <groupId>com.github.goldin</groupId>
- <artifactId>jenkins-maven-plugin</artifactId>
<groupId>com.github.goldin</groupId>
<artifactId>jenkins-maven-plugin</artifactId>
4.生成about信息
- <groupId>com.github.goldin</groupId>
- <artifactId>about-maven-plugin</artifactId>
<groupId>com.github.goldin</groupId>
<artifactId>about-maven-plugin</artifactId>
5.查找重复依赖
- <groupId>com.github.goldin</groupId>
- <artifactId>duplicates-finder-plugin</artifactId>
<groupId>com.github.goldin</groupId>
<artifactId>duplicates-finder-plugin</artifactId>
6.Maven邮件发送
- <groupId>com.github.goldin</groupId>
- <artifactId>mail-maven-plugin</artifactId>
<groupId>com.github.goldin</groupId>
<artifactId>mail-maven-plugin</artifactId>
7.项目目录查找
- <groupId>com.github.goldin</groupId>
- <artifactId>find-maven-plugin</artifactId>
<groupId>com.github.goldin</groupId>
<artifactId>find-maven-plugin</artifactId>
8.获取SVN版本
- <groupId>com.google.code.maven-svn-revision-number-plugin</groupId>
- <artifactId>maven-svn-revision-number-plugin</artifactId>
<groupId>com.google.code.maven-svn-revision-number-plugin</groupId>
<artifactId>maven-svn-revision-number-plugin</artifactId>
9.编译C++
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>native-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>native-maven-plugin</artifactId>
10.DDL生成
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>hibernate3-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>hibernate3-maven-plugin</artifactId>
11.Eclipse RCP
- <groupid>org.sonatype.tycho</groupid>
- <artifactid>target-platform-configuration</artifactid>
<groupid>org.sonatype.tycho</groupid>
<artifactid>target-platform-configuration</artifactid>
=========Maven Official Plugin=========
1.自动定义打包
- <artifactId>maven-assembly-plugin</artifactId>
<artifactId>maven-assembly-plugin</artifactId>
2.ANT
- <artifactId>maven-antrun-plugin</artifactId>
<artifactId>maven-antrun-plugin</artifactId>
=========Maven 全局属性=========
1.源码编码
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- maven.compile.classpath
- maven.runtime.classpath
- maven.test.classpath
- maven.plugin.classpath
<project.build.sourceEncoding>UTF-8</project.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