标签:
一。生命周期
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.
1.A Build Lifecycle is Made Up of Phases
Each of these build lifecycles is defined by a different list of build phases, wherein a build phase represents a stage in the lifecycle.
2.A Build Phase is Made Up of Plugin Goals
However, even though a build phase is responsible for a specific step in the build lifecycle, the manner in which it carries out those
responsibilities may vary. And this is done by declaring the plugin goals bound to those build phases.
A plugin goal represents a specific task (finer than a build phase) which contributes to the building and managing of a project. It
may be bound to zero or more build phases. A goal not bound to any build phase could be executed outside of the build lifecycle
by direct invocation.
链接:http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
二。插件开发
What is a Mojo?
A mojo is a Maven plain Old Java Object. Each mojo is an executable goal in Maven, and a plugin is a distribution of one
or more related mojos. In short, a mojo is a maven goal, to extend functionality not already found in maven.
链接:https://maven.apache.org/developers/mojo-api-specification.html
标签:
原文地址:http://www.cnblogs.com/yuyutianxia/p/4882441.html