开发者

Maven - Auto Respond 'yes' on all user input

Currently I have a grails/maven project. Right now I'm upgradin开发者_如何学Cg my grails proj to 1.2.1. The problem is that the upgrade asks for user input, and if I my CI server tries to build it, it will stall asking the user if he wants to upgrade certain plugins.

Is there a way to tell maven to respond 'y' on all user input?


Try using the --batch-mode option. This is supposed to automatically answer questions with "sensible" default answers ... whatever that means.

Failing that, on UNIX / LINUX you could try yes | mvn <options> ...


I found out that grails upgrade target has a '--non-interactive' option that disables user input. It was just a matter of wiring this with my CI server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜