首页IT科技expected怎么读英语发音(execute phase · mrdon/mavencliplugin Wiki)

expected怎么读英语发音(execute phase · mrdon/mavencliplugin Wiki)

时间2025-05-01 00:13:59分类IT科技浏览3322
导读:The “execute-phase      ...

The “execute-phase          ” goal is basically the same as the execute goal, except it accepts maven lifecycle phases instead of plugin goals. See the execute 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 “execute     ” 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 execute 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

Last edited by TimMoore, 2 years ago

Delete this Page

声明:本站所有文章          ,如无特殊说明或标注               ,均为本站原创发布          。任何个人或组织     ,在未征得本站同意时          ,禁止复制          、盗用               、采集     、发布本站内容到任何网站     、书籍等各类媒体平台               。如若本站内容侵犯了原著者的合法权益               ,可联系我们进行处理     。

创心域SEO版权声明:以上内容作者已申请原创保护,未经允许不得转载,侵权必究!授权事宜、对本内容有异议或投诉,敬请联系网站管理员,我们将尽快回复您,谢谢合作!

展开全文READ MORE
win10多任务切换怎么切到桌面上(win10多任务切换怎么切) 百度关键词设置方法(百度相关搜索关键词怎么采集)