Maven Concepts - Lifecycle: Difference between revisions
Jump to navigation
Jump to search
(→Phases) |
|||
Line 14: | Line 14: | ||
=Lifecycle= | =Lifecycle= | ||
A ''Maven lifecycle'' | A ''Maven lifecycle'' represents the clearly defined sequence of steps required for building and distributing a project artifact. | ||
There are three built-in lifecycles: ''default'', ''clean'' and ''site''. | |||
The ''default'' lifecycle handles artifact building and deployment. | |||
The ''clean'' lifecycle cleans the work area. | |||
The ''site'' lifecycle handles the creation of the project's site documentation. | |||
=Plugin Goal= | =Plugin Goal= |
Revision as of 17:58, 18 November 2016
External
- Introduction to the Build Lifecycle https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
- Lifecycles Reference https://maven.apache.org/ref/3.3.9/maven-core/lifecycles.html#
Internal
Overview
Lifecycle
A Maven lifecycle represents the clearly defined sequence of steps required for building and distributing a project artifact.
There are three built-in lifecycles: default, clean and site.
The default lifecycle handles artifact building and deployment.
The clean lifecycle cleans the work area.
The site lifecycle handles the creation of the project's site documentation.
Plugin Goal
A plugin goal
Phases
A Maven phase
validate
initialize
generate-sources
process-sources
generate-resources
process-resources
compile
process-classes
generate-test-sources
process-test-sources
generate-test-resources
process-test-resources
test-compile
process-test-classes
test
prepare-package
package
If using the assembly plugin, this is usually the phase where the plugin's "single" goal is associated with.