maven 插件2

Maven is - at its heart - a plugin execution framework; all work is done by plugins.

Maven 本质上就是一个插件搭建起来的框架, 它所有的功能都是由插件提供的。

核心插件:

Plugin Type* Version Release Date Description Source Repository Issue Tracking
Core plugins       Plugins corresponding to default core phases (ie. clean, compile). They may have multiple goals as well.    
clean B 3.0.0 2015-10-22 Clean up after the build. SVN JIRA
compiler B 3.6.1 2017-01-16 Compiles Java sources. SVN JIRA
deploy B 2.8.2 2014-08-27 Deploy the built artifact to the remote repository. SVN JIRA
failsafe B 2.20 2017-04-13 Run the JUnit integration tests in an isolated classloader. GIT JIRA
install B 2.5.2 2014-08-27 Install the built artifact into the local repository. SVN JIRA
resources B 3.0.2 2016-12-10 Copy the resources to the output directory for including in the JAR. SVN JIRA
site B 3.6 2016-11-17 Generate a site for the current project. SVN JIRA
surefire B 2.20 2017-04-13 Run the JUnit unit tests in an isolated classloader. GIT JIRA
verifier B 1.1 2015-04-14 Useful for integration tests - verifies the existence of certain conditions. SVN JIRA
Packaging types/tools       These plugins relate to packaging respective artifact types.    
ear B 2.10.1 2015-06-27 Generate an EAR from the current project. SVN JIRA
ejb B 2.5.1 2015-06-20 Build an EJB (and optional client) from the current project. SVN JIRA
jar B 3.0.2 2016-06-18 Build a JAR from the current project. SVN JIRA
rar B 2.4 2014-09-08 Build a RAR from the current project. SVN JIRA
war B 3.1.0 2017-04-26 Build a WAR from the current project. SVN JIRA
app-client/acr B 3.0.0 2015-01-23 Build a JavaEE application client from the current project. SVN JIRA
shade B 3.0.0 2017-01-27 Build an Uber-JAR from the current project, including dependencies. SVN JIRA
source B 3.0.1 2016-06-18 Build a source-JAR from the current project. SVN JIRA
Reporting plugins       Plugins which generate reports, are configured as reports in the POM and run under the site generation lifecycle.    
changelog R 2.3 2014-06-24 Generate a list of recent changes from your SCM. SVN JIRA
changes B+R 2.12.1 2016-11-01 Generate a report from an issue tracker or a change document. SVN JIRA
checkstyle B+R 2.17 2015-10-15 Generate a Checkstyle report. SVN JIRA
doap B 1.2 2015-03-17 Generate a Description of a Project (DOAP) file from a POM. SVN JIRA
docck B 1.1 2015-04-03 Documentation checker plugin. SVN JIRA
javadoc B+R 2.10.4 2016-06-10 Generate Javadoc for the project. SVN JIRA
jdeps B 3.0.0 2015-10-29 Run JDK‘s JDeps tool on the project. SVN JIRA
jxr R 2.5 2014-11-02 Generate a source cross reference. SVN JIRA
linkcheck R 1.2 2014-10-08 Generate a Linkcheck report of your project‘s documentation. SVN JIRA
pmd B+R 3.8 2017-05-05 Generate a PMD report. SVN JIRA
project-info-reports R 2.9 2016-03-01 Generate standard project reports. SVN JIRA
surefire-report R 2.20 2017-04-13 Generate a report based on the results of unit tests. GIT JIRA
Tools       These are miscellaneous tools available through Maven by default.    
ant B 2.4 2014-12-15 Generate an Ant build file for the project. SVN JIRA
antrun B 1.8 2014-12-26 Run a set of ant tasks from a phase of the build. SVN JIRA
archetype B 3.0.1 2017-04-11 Generate a skeleton project structure from an archetype. GIT JIRA
assembly B 3.0.0 2016-11-12 Build an assembly (distribution) of sources and/or binaries. SVN JIRA
dependency B+R 3.0.1 2017-05-11 Dependency manipulation (copy, unpack) and analysis. SVN JIRA
enforcer B 1.4.1 2015-08-23 Environmental constraint checking (Maven Version, JDK etc), User Custom Rule Execution. SVN JIRA
gpg B 1.6 2015-01-19 Create signatures for the artifacts and poms. SVN JIRA
help B 2.2 2013-02-23 Get information about the working environment for the project. SVN JIRA
invoker B+R 2.0.0 2015-06-27 Run a set of Maven projects and verify the output. SVN JIRA
jarsigner B 1.4 2015-01-21 Signs or verifies project artifacts. SVN JIRA
patch B 1.2 2015-03-09 Use the gnu patch tool to apply patch files to source code. SVN JIRA
pdf B 1.3 2015-02-16 Generate a PDF version of your project‘s documentation. SVN JIRA
plugin B+R 3.5 2016-08-30 Create a Maven plugin descriptor for any mojos found in the source tree, to include in the JAR. SVN JIRA
release B 2.5.3 2015-10-17 Release the current project - updating the POM and tagging in the SCM. SVN JIRA
remote-resources B 1.5 2013-08-14 Copy remote resources to the output directory for inclusion in the artifact. SVN JIRA
repository B 2.4 2015-02-22 Plugin to help with repository-based tasks. SVN JIRA
scm B 1.9.5 2016-07-01 Execute SCM commands for the current project. GIT JIRA
scm-publish B 1.1 2014-05-18 Publish your Maven website to a scm location. SVN JIRA
stage B 1.0 2015-03-03 Assists with release staging and promotion. SVN JIRA
toolchains B 1.1 2014-11-12 Allows to share configuration across plugins. SVN
JIRA

MojoHaus 的插件:

Plugin (see complete list with version) Description
animal-sniffer Build signatures of APIs (JDK for example) and checks your classes against them.
build-helper Attach extra artifacts and source folders to build.
castor Generate sources from an XSD using Castor.
clirr Compare binaries or sources for compatibility using Clirr
javacc Generate sources from a JavaCC grammar.
jdepend Generate a report on code metrics using JDepend.
nar-maven-plugin Compiles C, C++, Fortran for different architectures.
native Compiles C and C++ code with native compilers.
sql Executes SQL scripts from files or inline.
taglist Generate a list of tasks based on tags in your code.
versions
Manage versions of your project, its modules, dependencies and plugins.

google插件:

其他的插件

Plugin Maintainer Description
cargo Cargo Project Start/stop/configure J2EE containers and deploy to them.
clover Atlassian Clover Generate a Clover report.
jetty Jetty Project Jetty Run a Jetty container for rapid webapp development.
jalopy Triemax Use Jalopy to format your source code.
rat Apache Creadur Project Release Audit Tool (RAT) to verify files.
Genesis Plugins Apache Geronimo Project Verify legal files in artifacts.
Apache Tomcat Apache Tomcat Project Run an Apache Tomcat container for rapid webapp development.

参考:

https://maven.apache.org/plugins/index.html

http://maven.apache.org/ref/3.2.2/maven-core/default-bindings.html

时间: 2024-10-11 22:10:10

maven 插件2的相关文章

dbdeploy的maven插件使用

Introduction 简介 The maven plugin is designed for people who use Apache Maven as a build tool. maven插件的设计是被人们当初maven构建工具使用. As well as this maven plugin, dbdeploy supports an ant task and a command line interface. 以及这个Maven插件,dbdeploy支持ant任务 和 命令行接口 U

eclipse安装maven插件-解决requires ‘bundle org.slf4j.api 1.6.2′

eclipse安装maven插件-解决requires 'bundle org.slf4j.api 1.6.2′ [转载]http://robin.sh/html/1526_eclipse-maven.html 给eclipse安装maven插件,网上教程已经很多,不在累述.关键是安装过程中报错:requires 'bundle org.slf4j.api 1.6.2' but it could not be found. 这个错误很难搞,网上提供的解决方案绝大部分都不起作用.可能跟eclips

spring boot maven 插件

spirng boot 需要使用专用maven插件打包,才能打包.引入如下. <build>        <plugins>            <plugin>                <groupId>org.springframework.boot</groupId>                <artifactId>spring-boot-maven-plugin</artifactId>      

maven 学习---Maven 插件

什么是 Maven 插件? Maven 实际上是一个依赖插件执行的框架,每个任务实际上是由插件完成.Maven 插件通常被用来: 创建 jar 文件 创建 war 文件 编译代码文件 代码单元测试 创建工程文档 创建工程报告 插件通常提供了一个目标的集合,并且可以使用下面的语法执行: mvn [plugin-name]:[goal-name] 例如,一个 Java 工程可以使用 maven-compiler-plugin 的 compile-goal 编译,使用以下命令: mvn compile

安装eclipse maven插件m2eclipse No repository found containing

m2eclipse插件是Eclipse的一款Maven插件. 安装m2eclipse插件的过程如下: 启动Eclipse,在菜单栏中选择Help,然后选择Install New Software-,可以看到一个Install对话框,点击Work with:字段边上的Add按钮,会得到一个新的Add Repository对话框,在Name字段中输入m2e,Location字段中输入http://download.eclipse.org/technology/m2e/releases,然后点击OK.

Maven学习(四):生命周期与maven插件

一.maven 生命周期 (一)简介 Maven强大的一个重要的原因是它有一个十分完善的生命周期模型(lifecycle),这个生命周期可以从两方面来理解: 1.顾名思义,运行Maven的每个步骤都由它来定义的,这种预定义的默认行为使得我们使用Maven变得简单,相比而言,Ant的每个步骤都要你手工去定义. 2.这个模型是一种标准,在不同的项目中,使用Maven的接口是一样的,这样就不用去仔细理解每个项目的构建了,一般情况下,mvn clean install  这样的命令是通用的. 3.一个M

总结eclipse中安装maven插件

当自己越来越多的接触到开源项目时,发现大多数的开源项目都是用maven来够建的.并且在开发应用时,也越来越意识到maven的确会解决很多问题,如果你要了解maven,可以参考:Maven入门指南(一)和 Maven入门指南(二).所以自己也学着使用maven.以下均参考的互联网上的内容,有的做了一些小的修改,并注明了出处. 第一部分:原文链接 maven3 安装: 安装 Maven 之前要求先确定你的 JDK 已经安装配置完成.Maven是 Apache 下的一个项目,目前最新版本是 3.0.4

java_model_dao_自动生成_generator-mybatis-generator-1.3.2 基于maven插件

用mybatis原因很简单,易用,性能.是介于jdbc和hibernate之间的一个完美方案. 很简单: 1:配置pom <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://

maven插件安装

eclipse安装maven插件,在网上有各种各样的方法,博主使用过的也不止一种,但是留下的印象总是时好时不好,同样的方法也不确定那一次能够成功.其实失败的大多数原因是因为所安装的maven插件版本与eclipse的版本不一致造成,为了避免这种问题可以采用下面这种方式: 1. 打开eclipse,菜单"Help"-"Install New Software..." 2. 在Work with 地址栏输入:http://download.eclipse.org/rel

maven插件报错之解决

maven插件报错之解决 用m2eclipse创建Maven项目时报错?? maveneclipsebuilddependenciesauthorizationplugins 用m2eclipse创建Maven项目时报错?? 问题: Could not calculate build plan: Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from http://repo1.maven.