Home » Maven Plugin

Maven Plugins

The maven plugins are central part of maven framework, it is used to perform specific goal.

According to Apache Maven, there are 2 types of maven plugins.

  1. Build Plugins
  2. Reporting Plugins

Build Plugins

These plugins are executed at the time of build. These plugins should be declared inside the <build> element.


Reporting Plugins

These plugins are executed at the time of site generation. These plugins should be declared inside the <reporting> element.


Maven Core Plugins

A list of maven core plugins are given below:

Plugin Description
clean clean up after build.
compiler compiles java source code.
deploy deploys the artifact to the remote repository.
failsafe runs the JUnit integration tests in an isolated classloader.
install installs the built artifact into the local repository.
resources copies the resources to the output directory for including in the JAR.
site generates a site for the current project.
surefire runs the JUnit unit tests in an isolated classloader.
verifier verifies the existence of certain conditions. It is useful for integration tests.

List of Maven Plugins

To see the list of maven plugins, you may visit apache maven official website http://repo.maven.apache.org/maven2/org/apache/maven/plugins/. Maven plugins are also available outside the maven at codehaus.org and code.google.com.

You may also like