maven plugins

来源:互联网 发布:深孔钻编程软件 编辑:程序博客网 时间:2024/06/02 04:45

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

Available Plugins

Maven is - at its heart - a plugin execution framework; all work is done by plugins. Looking for a specific goal to execute? This page lists the core plugins and others. There are the build and the reporting plugins:

  • Build plugins will be executed during the build and they should be configured in the<build/> element from the POM.
  • Reporting plugins will be executed during the site generation and they should be configured in the<reporting/> element from the POM. Because the result of a Reporting plugin is part of the generated site, Reporting plugins should be both internationalized and localized. You can read more about thelocalization of our plugins and how you can help.

Supported By The Maven Project

To see the most up-to-date list browse the Maven repository at http://repo.maven.apache.org/maven2/, specifically the org/apache/maven/plugins subfolder. (Plugins are organized according to a directory structure that resembles the standard Java package naming convention)

PluginType*VersionRelease DateDescriptionSource RepositoryIssue TrackingCore plugins   Plugins corresponding to default core phases (ie. clean, compile). They may have multiple goals as well.  cleanB2.52012-05-26Clean up after the build.SVNJIRAcompilerB2.5.12012-06-04Compiles Java sources.SVNJIRAdeployB2.72011-08-24Deploy the built artifact to the remote repository.SVNJIRAfailsafeB2.12.32012-08-28Run the JUnit integration tests in an isolated classloader.SVNJIRAinstallB2.3.12010-05-21Install the built artifact into the local repository.SVNJIRAresourcesB2.62012-08-18Copy the resources to the output directory for including in the JAR.SVNJIRAsite for Maven 2B2.42012-04-26Generate a site for the current project.SVNJIRAsite for Maven 2 & 3B3.12012-04-30Generate a site for the current project.SVNJIRAsurefireB2.12.32012-08-28Run the JUnit unit tests in an isolated classloader.SVNJIRAverifierB1.02010-01-30Useful for integration tests - verifies the existence of certain conditions.SVNJIRAPackaging types / tools   These plugins relate to packaging respective artifact types.  earB2.72012-01-16Generate an EAR from the current project.SVNJIRAejbB2.32010-09-18Build an EJB (and optional client) from the current project.SVNJIRAjarB2.42012-02-01Build a JAR from the current project.SVNJIRArarB2.22007-02-28Build a RAR from the current project.SVNJIRAwarB2.22012-02-01Build a WAR from the current project.SVNJIRAapp-clientB1.02011-03-31Build a JavaEE application client from the current project.SVNJIRAshadeB1.7.12012-06-30Build an Uber-JAR from the current project, including dependencies.SVNJIRAReporting plugins   Plugins which generate reports, are configured as reports in the POM and run under the site generation lifecycle.  changelogR2.22010-05-28Generate a list of recent changes from your SCM.SVNJIRAchangesB+R2.7.12012-05-30Generate a report from issue tracking or a change document.SVNJIRAcheckstyleB+R2.9.12012-02-25Generate a Checkstyle report.SVNJIRAdoapB1.12011-01-15Generate a Description of a Project (DOAP) file from a POM.SVNJIRAdocckB1.02008-11-16Documentation checker plugin.SVNJIRAjavadocB+R2.8.12012-01-23Generate Javadoc for the project.SVNJIRAjxrR2.32011-07-17Generate a source cross reference.SVNJIRAlinkcheckR1.12010-11-13Generate a Linkcheck report of your project's documentation.SVNJIRApmdB+R2.7.12012-02-16Generate a PMD report.SVNJIRAproject-info-reportsR2.52012-08-04Generate standard project reports.SVNJIRAsurefire-reportR2.12.32012-08-28Generate a report based on the results of unit tests.SVNJIRATools   These are miscellaneous tools available through Maven by default.  antB2.32009-11-11Generate an Ant build file for the project.SVNJIRAantrunB1.72011-11-01Run a set of ant tasks from a phase of the build.SVNJIRAarchetypeB2.22011-11-19Generate a skeleton project structure from an archetype.SVNJIRAassemblyB2.32012-02-01Build an assembly (distribution) of sources and/or binaries.SVNJIRAdependencyB+R2.5.12012-08-27Dependency manipulation (copy, unpack) and analysis.SVNJIRAenforcerB1.1.12012-07-16Environmental constraint checking (Maven Version, JDK etc), User Custom Rule Execution.SVNJIRAgpgB1.42011-08-24Create signatures for the artifacts and poms.SVNJIRAhelpB2.1.12010-03-26Get information about the working environment for the project.SVNJIRAinvokerB+R1.72012-08-13Run a set of Maven projects and verify the output.SVNJIRAjarsignerB1.22009-09-30Signs or verifies project artifacts.SVNJIRAoneB1.22007-09-12A plugin for interacting with legacy Maven 1.x repositories and builds.SVNJIRApatchB1.1.12010-01-06Use the gnu patch tool to apply patch files to source code.SVNJIRApdfB1.12009-12-13Generate a PDF version of your project's documentation.SVNJIRApluginB+R3.12012-07-03Create a Maven plugin descriptor for any mojos found in the source tree, to include in the JAR.SVNJIRAreleaseB2.3.22012-06-15Release the current project - updating the POM and tagging in the SCM.SVNJIRAreactorB1.02008-09-27Build a subset of interdependent projects in a reactorSVNJIRAremote-resourcesB1.32012-05-11Copy remote resources to the output directory for inclusion in the artifact.SVNJIRArepositoryB2.3.12010-07-21Plugin to help with repository-based tasks.SVNJIRAscmB1.72012-04-29Generate a SCM for the current project.SVNJIRAsourceB2.22012-08-06Build a JAR of sources for use in IDEs and distribution to the repository.SVNJIRAstageB1.0-alpha-22009-07-14Assists with release staging and promotion.SVNJIRAtoolchainsB1.02009-11-01Allows to share configuration across plugins.SVNJIRAIDEs   Plugins that simplify integration with integrated developer environments.  eclipseB2.92012-02-14Generate an Eclipse project file for the current project.SVNJIRAideaB2.22008-08-08Create/update an IDEA workspace for the current project (individual modules are created as IDEA modules)SVNJIRA

* Build or Reporting plugin

There are also some sandbox plugins into our source repository.

Outside The Maven Land

At codehaus.org

There are also many plug-ins available at the Mojo project at Codehaus.

To see the most up-to-date list, browse the Codehaus repository at http://repository.codehaus.org/, specifically the org/codehaus/mojo subfolder. Here are a few common ones:

Plugin (see complete list with version)Descriptionanimal-snifferBuild signatures of APIs (JDK for example) and checks your classes against them.build-helperAttach extra artifacts and source folders to build.castorGenerate sources from an XSD using Castor.clirrCompare binaries or sources for compatibility using ClirrjavaccGenerate sources from a JavaCC grammar.jdependGenerate a report on code metrics using JDepend.nativeCompiles C and C++ code with native compilers.sqlExecutes SQL scripts from files or inline.taglistGenerate a list of tasks based on tags in your code.versionsManage versions of your project, its modules, dependencies and plugins.

At code.google.com

There are also many plug-ins available at the Google Code.

Misc

A number of other projects provide their own Maven plugins. This includes:

PluginMaintainerDescriptioncargoCargo ProjectStart/stop/configure J2EE containers and deploy to them.cloverAtlassian CloverGenerate a Clover report.jaxmeApache Web Services ProjectUse the JaxMe JAXB implementation to generate Java sources from XML schema.jettyJetty ProjectJetty Run a Jetty container for rapid webapp development.jalopyTriemaxUse Jalopy to format your source code.ratApache Incubator ProjectRelease Audit Tool (RAT) to verify files.Genesis PluginsApache Geronimo ProjectVerify legal files in artifacts.

Resources

  1. Guide to Configuring Plugins

 

原创粉丝点击