Home Maven2 Apache Maven plugins
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

Apache Maven plugins

Advertisement
Plugins are used to interact with a host application to provide a specific task on demand. Maven provides a plugin execution framework and all work is done by plugins i.e. real action is performed by plugins like compile code, create jar files, create war

Apache Maven plugins

     

Plugins are used to interact with a host application to provide a specific task on demand. Maven provides a plugin execution framework and all work is done by plugins i.e. real action is performed by plugins like compile code, create jar files, create war files, unit test code, create project documentation etc. Clean Plugin is one of the simplest maven 2.0 plugins. When we run "mvn clean", the "clean" goal is executed and the target directory is removed. Here, we are providing a list of core and other plugins below:   

 

 

 

 

Plugin

Description

Core plugins

Corresponding to default core phases

clean

Clean up after the build.

compiler

Compiles Java sources.

deploy

Deploy the built artifact to the remote repository.

install

Install the built artifact into the local repository.

resources

Copy the resources to the output directory for including in the JAR.

site

Generate a site for the current project.

surefire

Run the Junit tests in an isolated classloader.

verifier

Verifies the existence of certain conditions.

Packaging types / tools

Related to packaging respective artifact types.

ear

Generate an EAR from the current project.

ejb

Build an EJB from the current project.

jar

Build a JAR from the current project.

rar

Build a RAR from the current project.

war

Build a WAR from the current project.

Reporting

Related to generating reports

changelog

Generate a list of recent changes from your SCM.

changes

Generate a report from issue tracking or a change document.

checkstyle

Generate a checkstyle report.

clover

Generate a Clover report.

doap

Generate a DOAP file from a POM.

docck

Documentation checker plugin.

javadoc

Generate Javadoc for the project.

jxr

Generate a source cross reference.

pmd

Generate a PMD report.

project-info-reports

Generate a standard project reports.

surefire-report

Generate a report based on the results of unit tests.

Tools

Tools available through Maven by default

ant

Generate an Ant build file for the project.

antrun

Run a set of ant tasks from a phase of the build.

archetype

Generate a skeleton project structure from an archetype.

assembly

Build an assembly of sources and/or binaries.

dependency

Dependency manipulation and analysis.

enforcer

Environmental constraint checking, User Custom Rule Execution.

gpg

Create signatures for the artifacts and poms.

help

Get information about the working environment for the project.

invoker

Run a set of Maven projects and verify the output

one

A plugin for interacting with legacy Maven 1.x repositories and builds.

patch

Use the gnu patch tool to apply patch files to source code.

plugin

Create a Maven plugin descriptor for any Mojo's found in the source tree, to include in the JAR.

release

Release the current project

remote-resources

Copy remote resources to the output directory for inclusion in the artifact.

repository

Plugin to help with repository-based tasks.

scm

Generate a SCM for the current project.

source

Build a JAR of sources for use in IDEs and distribution to the repository.

IDEs

Plugins that simplify integration with IDEs

eclipse

Generate an Eclipse project file for the current project.

idea

Create/update an IDEA workspace for the current project.

Learn about Maven2 Eclipse Plug-in :  Maven 2 Eclipse Plug-in

Advertisement

Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: March 28, 2008

Ask Questions?    Discuss: Apache Maven plugins  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
ramzi
June 28, 2011
Thank you

thank you for your great job. we suggests an update for the lessons, because the big part of framework and tools have a new versions.
avriladmin
June 28, 2011
sa

thank you for your great job.
DMCA.com