Maven Build Plugins

Recommended Maven build plugins:

  • Ant Run, can handle Ant scripts.

  • Assembly, uilds a distributable file from all the project components.

  • Clean, cleans the output folder.

  • Compiler, compiles the source code.

  • Dependency, copies and manipulates the project dependencies.

  • Deploy, takes care of the deployment phase.

  • Enforcer, stops the project from being built if it does not comply with a set of rules

  • Failsafe, runs integration tests.

  • Install, installs the project into the local Maven repository.

  • JaCoCo, generates coverage data from Surefire and Failsafe.

  • Jar, generates the jar file.

  • Javadoc, handles the Javadocs.

  • Release, generates releases and updates the project.

  • Resources, handles the project resources.

  • Site, generates the Maven Site.

  • Source, bundles the source into the packaged project.

  • Surefire, runs unit tests.

These will be used by Maven, but some may require additional configuration.

Check the archetypes to find out how to set them up.

Last updated