问题
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