Maven Concepts - Lifecycle

From NovaOrdis Knowledge Base
Revision as of 18:03, 18 November 2016 by Ovidiu (talk | contribs) (→‎Lifecycle)
Jump to navigation Jump to search

External

Internal

Overview

Maven Lifecycle.png

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, and these are its phases. 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.

pre-integration-test

integration-test

post-integration-test

verify

install

deploy