Lifecycles Reference
Maven defines 4 lifecycles in org.apache.maven.lifecycle.providers package:
default Lifecycle
default lifecycle is defined only with phases, without any associated plugin binding: plugins bindings for this lifecycle are defined separately for each packaging:
private static final String[] 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",
"pre-integration-test",
"integration-test",
"post-integration-test",
"verify",
"install",
"deploy"
};
clean Lifecycle
clean lifecycle phases are defined with their plugins bindings:
private static final String[] PHASES = {
"pre-clean",
"clean",
"post-clean"
};
private static final String MAVEN_CLEAN_PLUGIN_VERSION = "3.1.0";
private static final String[] BINDINGS = {
"clean", "org.apache.maven.plugins:maven-clean-plugin:" + MAVEN_CLEAN_PLUGIN_VERSION + ":clean"
};
site Lifecycle
site lifecycle phases are defined with their plugins bindings:
private static final String[] PHASES = {
"pre-site",
"site",
"post-site",
"site-deploy"
};
private static final String[] BINDINGS = {
"site", "org.apache.maven.plugins:maven-site-plugin:3.9.1:site",
"site-deploy", "org.apache.maven.plugins:maven-site-plugin:3.9.1:deploy"
};
wrapper Lifecycle
wrapper lifecycle phases are defined with their plugins bindings:
private static final String[] PHASES =
{
"wrapper"
};
private static final String[] BINDINGS = {
"wrapper", "org.apache.maven.plugins:maven-wrapper-plugin:3.1.0:wrapper"
};



