/** * These represent the mojos to run in a lifecycle phase for a particular packaging type. The * example below is the set of mojos we are going to run in the default lifecycle for the "jar" * packaging. * org.apache.maven.lifecycle.LifecycleMapping jar org.apache.maven.lifecycle.DefaultLifecycleMapping default org.apache.maven.plugins:maven-resources-plugin:resources org.apache.maven.plugins:maven-compiler-plugin:compile org.apache.maven.plugins:maven-resources-plugin:testResources org.apache.maven.plugins:maven-compiler-plugin:testCompile org.apache.maven.plugins:maven-surefire-plugin:test org.apache.maven.plugins:maven-jar-plugin:jar org.apache.maven.plugins:maven-install-plugin:install org.apache.maven.plugins:maven-deploy-plugin:deploy In the LifecycleExecutor we have configured what the lifecycles look like. Below we have the "default" lifecycle. The mojos you see listed above for the "jar" packaging which are specified to run in the "default" lifecycle will be mapped onto the phases you see below. default 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 package pre-integration-test integration-test post-integration-test verify install deploy * */