How to execute multiple goals in one maven command, but with different arguments for each goal

后端 未结 2 1973
你的背包
你的背包 2021-01-19 20:53

I am trying to run 2 maven goals in one maven command like:

mvn release:prepare release:perform -Darguments=\'-Dmaven.test.skip=true\'

but,

2条回答
  •  清酒与你
    2021-01-19 21:23

    You can use the following:

    mvn -Dmaven.test.skip=true release:prepare release:perform
    

    Within release-plugin the arguments are passed via -Darguments='....' to the sub process which is started by release:perform. The other arguments are passed to the process which is started by release:prepare.

提交回复
热议问题