Maven plugins are the basic component of a Maven framework. Each of the plugins has a specific task to be performed.
Maven generally performs the following functionalities:
Generates jar files.
Generates war files.
Compiles the code.
Executes unit testing of code.
Generates documentation of the project.
Generates customized reports.
Maven plugin gives a group of goals that can be run with the following command syntax:
mvn [plugin-name]:[goal-name]