What does “arguments” do in release:prepare?

自闭症网瘾萝莉.ら 提交于 2019-12-11 01:48:37

问题


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.

Thanks in advance.


回答1:


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.

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.

See an example here



来源:https://stackoverflow.com/questions/12328901/what-does-arguments-do-in-releaseprepare

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!