码迷,mamicode.com
首页 > 其他好文 > 详细

maven插件

时间:2015-10-15 15:49:29      阅读:140      评论:0      收藏:0      [点我收藏+]

标签:

一。生命周期

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

maven插件

标签:

原文地址:http://www.cnblogs.com/yuyutianxia/p/4882441.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!