Maven Plugin
What are Maven Plugins? Maven is actually a plugin execution framework where every task is actually done by plugins. Maven Plugins are generally used to − create jar file create war file compile code files unit testing of code create project documentation create project reports A plugin generally provides a set of goals, which can be executed using the following syntax − mvn [plugin-name]:[goal-name] For example, a Java project can be compiled with the maven-compiler-plugin's compile-goal by running the following command. mvn compiler:compile Plugin Types Maven provided the following two types of Plugins − Sr.No. Type & Description 1 Build plugins They execute during the build process and should be configured in the <build/> element of pom.xml. 2 Reporting plugins They execute during the site generation process and they should be configured in the <reporting/> element of the pom.xml. Following is the list of few common plugins ...