Javatpoint Logo
Javatpoint Logo

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:

PluginDescription
cleanclean up after build.
compilercompiles java source code.
deploydeploys the artifact to the remote repository.
failsaferuns the JUnit integration tests in an isolated classloader.
installinstalls the built artifact into the local repository.
resourcescopies the resources to the output directory for including in the JAR.
sitegenerates a site for the current project.
surefireruns the JUnit unit tests in an isolated classloader.
verifierverifies 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.





Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA