博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
execute phase · mrdon/maven-cli-plugin Wiki
阅读量:5815 次
发布时间:2019-06-18

本文共 2061 字,大约阅读时间需要 6 分钟。

The “execute-phase” goal is basically the same as the goal, except it accepts maven lifecycle phases instead of plugin goals. See the goal docs for more information.

What It Does

This goal maps your commands to the full set of recognized maven lifecycle phases. This goal will allow you to type “mvn package” and all the typical lifecycle events will be run up and through package. Contrastingly, the “” goal of this plugin will not allow you to run “package” because package is not a plugin, but rather a lifecycle goal.

Command Line Syntax

The command line syntax is very similar to the way arguments passed to the mvn command are interpreted, with one exception, you can specify modules. So, specifying:

maven2> clean install -Dmaven.test.skip=true -o

is equivalent to running:

$ mvn clean install -Dmaven.test.skip=true -o

Similarly, goals can be executed:

maven2> dependency:tree

is equivalent to running:

$ mvn dependency:tree

When modules are specified, this is equivalent to changing into the module first. So running:

maven2> mymodule/mysubmodule clean install

is equivalent to running:

$ cd mymodule/mysubmodule$ mvn clean install

Multiple modules can be specified, this is equivalent to running each command on each module:

maven2> mymodule/mysubmodule1 mymodule2 clean install

is equivalent to running:

$ cd mymodule/mysubmodule1$ mvn clean install$ cd ../..$ cd mymodule2$ mvn clean install

Finally, different goals can be executed on different modules in the one command:

maven2> mymodule1 clean install -Dmaven.test.skip=true mymodule2 package

is equivalent to running:

$ cd mymodule1$ mvn clean install -Dmaven.test.skip=true$ cd ..$ cd mymodule2$ mvn package

Of course, aliases still work as for the goal.

Supported Options

Option Description
-o Offline mode
-N Do not recursively execute lifecycle phases
-S Shorthand for -Dmaven.test.skip=true
-Dkey=value Specifies a property
(you can specify a value with whitespace by quoting it: -Dkey="value1 value2"
-Pprofile Specifies a profile to use

转载地址:http://jgmbx.baihongyu.com/

你可能感兴趣的文章
StarUML建模工具全平台破解及license验证简要分析
查看>>
Android 快速开发系列 打造万能的ListView GridView 适配器
查看>>
gradle命令行的运行
查看>>
Cocos2d-x 3.2在mac下android的环境配置
查看>>
程序中获取编译时的时间日期
查看>>
Linux防火墙工具Firestarter
查看>>
常用设计模式
查看>>
进程题目锦集
查看>>
spring feign使用笔记
查看>>
Redis持久化
查看>>
商业市场和消费市场的基本区别
查看>>
c基础(打印出菱形图案)
查看>>
linux 终端乱码
查看>>
国内几大互联网公司提供的云主机云应用简单对比(工作笔记)
查看>>
The "data" URL scheme 二,三 事
查看>>
轻便提示插件tipTip
查看>>
【刷机方法】Moto Nexus 6线刷方法总结
查看>>
[HIVE] 源码解析SQL->MR [Simple-Select]
查看>>
cuda编程知识普及
查看>>
2、bootsrap fileinput 文件上传
查看>>