Question

Currently I have a grails/maven project. Right now I'm upgrading 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?

Was it helpful?

Solution 2

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.

OTHER TIPS

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> ...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top