Maven

About

Maven is a build tool.

It is declarative build tool whereas ant is a procedural build tool. You can then change the build process by changing the process not the declaration. Most of the project declaration takes place in the Project Object Model file.

The building steps where Maven can help are:

Whenever you want to customise the build for a Maven project, this is done by adding or reconfiguring plugins generally in the Project Object Model file.

Model

maven has several execution unit:

  • the execution
  • the goal
  • the phase

execution

Maven - Plugin Execution

An execution is the definition of a goal (a function) and its parameters

Goal

Maven - Goal

  • The minimal execution unit is called a goal.
  • This goals are packaged in a plugin

Phase

Maven - Phase (Build lifecycle)

Documentation

Task Runner