什么是“参数"?做发布:准备? [英] What does "arguments" do in release:prepare?

查看:161
本文介绍了什么是“参数"?做发布:准备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道参数"与 release:prepare 参数到底有什么作用,我们应该为它设置什么值? 我已经在版本:prepare description中检查了它的描述. ,但我不明白.

I want to know what does "arguments" exactly do as release:prepare parameter and what should we set as a value for it? I've checked the description for it on release:prepare description , but I don't understand.

谢谢.

推荐答案

发行插件可能会在此过程中调用Maven,并指定了不同的阶段/目标/参数. -Darguments选项对于将参数传递给那些嵌套的执行很有用.

The release plugin may call Maven along the way, with different phases/targets/arguments specified. The -Darguments option is useful for passing arguments to those nested executions.

如果键入mvn release:prepare -Dmy.var=xxx,则仅为发布插件定义my.var,它不会将其传递给Maven的嵌套调用.

If you typed mvn release:prepare -Dmy.var=xxx then the my.var would be defined for the release plugin only, it wouldn't pass it to nested invocations of Maven.

在此处查看示例

这篇关于什么是“参数"?做发布:准备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆