Eclipse中执行Maven的build命令

来源:互联网 发布:python爬虫框架 编辑:程序博客网 时间:2024/05/09 05:40

Eclispe Maven build

Eclipse的M2Eclipse插件提供在Eclipse的右键菜单中的mvn命令

M2Eclipse之后,每当修改了maven project中的任何一个文件,都会触发自动build,console输出如下:Maven Builder: AUTO_BUILD

Life Cycle Phases(生命周期的各个阶段)

validate

validate the project is correct and all necessary information is available

compile

compile the source code of the project

test

test the compiled source code using a suitable unit testing framework. These tests should not require the code be packaged or deployed

package

take the compiled code and package it in its distributable format, such as a JAR.

integration-test

process and deploy the package if necessary into an environment where integration tests can be run

verify

run any checks to verify the package is valid and meets quality criteria

install

install the package into the local repository, for use as a dependency in other projects locally

deploy

done in an integration or release environment, copies the final package to the remote repository for sharing with other developers and projects.

0 0