Few point about maven
Maven: Lifecycle vs. Phase vs. Plugin
vs. Goal
Life
cycle is a sequence of named phases.
Phases
executes sequentially. Executing a phase means executes all previous phases.
Plugin is a collection of goals also
called MOJO (Maven Old Java Object). Most of Maven's
functionality is in plugins. A plugin provides a set of goals that can be
executed using the following syntax:
mvn [plugin-name]:[goal-name]
Goal is the task (action) that is executed.
Maven is based around the central concept of a build lifecycle. There are three built-in build lifecycles: default, clean and site.
The default lifecycle handles your
project deployment
The clean lifecycle handles
project cleaning
The site lifecycle handles the
creation of your project's site documentation

Lifecycle 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, prepare-package, package, pre-integration-test,
integration-test, post-integration-test, verify, install, deploy]
Lifecycle clean -> [pre-clean, clean, post-clean]
Lifecycle site -> [pre-site, site, post-site,
site-deploy]


https://stackoverflow.com/questions/26607834/maven-lifecycle-vs-phase-vs-plugin-vs-goal
http://maven.apache.org/ref/3.6.2/maven-core/default-bindings.html
https://stackoverflow.com/questions/16205778/what-are-maven-goals-and-phases-and-what-is-their-difference
https://maven.apache.org/guides/introduction/introduction-to-profiles.html
https://www.baeldung.com/maven-goals-phases
No comments:
Post a Comment