A maven plugin represents a set of goals which provides the facility to add your own actions to the build process.
Syntax to execute a plugin:
mvn [plugin–name]:[goal–name]
Maven plugins can be used to:
- create jar file.
- create war file.
- compile code files.
- unit testing of code.
- create project documentation.
- create project reports.