Maven plugin for beginners and professionals with topics on maven example, plugin, pom, dependency, eclipse, repository, web application, eclipse example, servlet, jsp, struts, hibernate, spring etc.
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.
- Build Plugins
- Reporting Plugins
These plugins are executed at the time of build. These plugins should be declared inside the <build> element.
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:
|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.