nMaven’s
build lifecycle:
nconsists
of a series of phases where each phase can perform one or more actions, or goals,
related to that phase. Compile phase invokes a certain set of goals to compile set of
classes.
nIf
you tell Maven to compile, the validate, initialize, generate-sources, process-sources, generate-resources, and compile phases will execute.
nStandard
build life cycle
consists of many phases and these can be thought of as extension points. When you need to
add some
functionality to the build you do so with the plugin.
nMaven
Plugins provide reusable
build logic that can be slotted into the standard build life cycle. Any time you need to
customize the way
your projects builds you either employ the use of an existing plugin or create
custom plugin for the task at hand.