Maven常用插件列表

插件名称

用途

来源

maven –clean -plugin

清理项目

Apache

maven –compile -plugin

编译项目

Apache

maven –deploy -plugin

部署项目

Apache

maven –install -plugin

安装项目

Apache

maven –resources -plugin

处理资源文件

Apache

maven –site -plugin

生成站点

Apache

maven –surefire -plugin

执行测试

Apache

maven –jar -plugin

构建JAR项目

Apache

maven –war -plugiin

构建war项目

Apache

maven –shade -plugin

构建包含遗憾的JAR包

Apache

maven –changelog -plugin

生产版本控制变更报告

Apache

maven –checkstyle -plugin

生成checkStyle报告

Apache

maven –javadoc –plugin

生成JavaDoc文档

Apache

maven –jxr –plugin

生成源码交叉引用文档

Apache

maven –pmd –plugin

生成PMD报告

Apache

maven –project –info -reports –plugin

生成项目信息报告

Apache

maven –surefire –plugin

生成单元测试报告

Apache

maven –antrun –plugin

调用Ant任务

Apache

maven -archetype –plugin

基于Archetype生成项目骨架

Apache

maven –assembly –plugin

构建自定义格式的分布包

Apache

maven –dependency –plugin

依赖分析及控制

Apache

maven –enforcer –plugin

定义规则并强制要求遵守

Apache

maven –pgp –plugin

为项目构建生成PGP签名

Apache

maven -invoke –plugin

自动运行Maven项目构建并验证

Apache

maven –release –plugin

自动项目版本发布

Apache

maven –scm –plugin

集成版本控制系统

Apache

maven –source –plugin

生成源码包

Apache

maven –eclipse –plugin

生成Eclipse项目环境变量

Apache

jboss –maven –plugin

启动、停止Jboss,部署项目

Codehaus

properties –maven –plugin

从properties文件读写Maven属性

Codehaus

sql –maven –plugin

运行SQL脚本

Codehaus

tomcat –maven –plugin

启动、停止、部署项目

Codehaus

versions –maven –plugin

自动化批量更新POM版本

Codehaus

cargo –maven –plugin

启动/停止/配置各类Web容器自动化部署Web项目

Cargo

jetty –maven –plugin

集成jetty容器,实现快速开发测试

Eclipse

maven –gae –plugin

集成Google APP Engine

Googlecode

maven –android –plugin

构建Android项目

Googlecode

另外附  国内著名Maven专家的文章:

Maven实战(七)——常用Maven插件介绍(上)    http://www.infoq.com/cn/news/2011/04/xxb-maven-7-plugin

Maven实战(八)——常用Maven插件介绍(下)    http://www.infoq.com/cn/news/2011/05/xxb-maven-8-plugin

Maven实战(五)——自动化Web应用集成测试     http://www.infoq.com/cn/news/2011/03/xxb-maven-5-integration-test

说明:

l  来自Apache的完整插件列表在:http://maven.apache.org/plugins/index.html

l  来自Codehaus的完整插件列表在:http://mojo.codehaus.org/plugins.html

原文地址:https://www.cnblogs.com/tonychanleader/p/3072703.html