Maven Concepts - Lifecycle: Difference between revisions
Jump to navigation
Jump to search
(→Phases) |
(→Phases) |
||
Line 28: | Line 28: | ||
A ''Maven phase'' represents a stage in a [[#Lifecycle|lifecycle]]. | A ''Maven phase'' represents a stage in a [[#Lifecycle|lifecycle]]. | ||
==Default Lifecycle Phases== | |||
==validate== | ===validate=== | ||
==initialize== | ===initialize=== | ||
==generate-sources== | ===generate-sources=== | ||
==process-sources== | ===process-sources=== | ||
==generate-resources== | ===generate-resources=== | ||
==process-resources== | ===process-resources=== | ||
==compile== | ===compile=== | ||
==process-classes== | ===process-classes=== | ||
==generate-test-sources== | ===generate-test-sources=== | ||
==process-test-sources== | ===process-test-sources=== | ||
==generate-test-resources== | ===generate-test-resources=== | ||
==process-test-resources== | ===process-test-resources=== | ||
==test-compile== | ===test-compile=== | ||
==process-test-classes== | ===process-test-classes=== | ||
==test== | ===test=== | ||
==prepare-package== | ===prepare-package=== | ||
==package== | ===package=== | ||
If using the [[Maven_assembly_Plugin#Plugin_Execution|assembly plugin]], this is usually the phase where the plugin's "single" goal is associated with. | If using the [[Maven_assembly_Plugin#Plugin_Execution|assembly plugin]], this is usually the phase where the plugin's "single" goal is associated with. | ||
==pre-integration-test== | ===pre-integration-test=== | ||
==integration-test== | ===integration-test=== | ||
==post-integration-test== | ===post-integration-test=== | ||
==verify== | ===verify=== | ||
==install== | ===install=== | ||
==deploy== | ===deploy=== |
Revision as of 18:02, 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.
A lifecycle is defined by a sequence of build phases.
Plugin Goal
A plugin goal
Phases
A Maven phase represents a stage in a lifecycle.
Default Lifecycle Phases
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.