How to skip the plugin update hint when starting the GRAILS application?

Started a new project using Grails RC3 (Windows 7 64-bit Java 1.6)

Installed spring-security-core plugin

Now when I launch the GRAILS application, it offers me to upgrade webxml-1.4 to 1.3.1 again and again

I am using IntelliJ 10.5.3 and the console does not allow me to enter NO, so I cannot use the IDE for debugging.

Possible solutions that I see in the order of preference - Find a way to skip the plugin update question - Manually change the spring-security-core configuration somewhere to depend on webxml 1.4 - Switch to STS for development (The console works in STS)

thanks

+6
source share
2 answers

You can try setting the -non-interactive flag, which should skip prompts.

grails run-app --non-interactive 

You can manage plugin dependencies in grails by installing this BuildConfig.groovy. See the Plugin Exclusions section of the User Guide -

http://grails.org/doc/1.3.7/guide/3.%20Configuration.html#3.7.10%20Plugin%20Dependencies

Remember to remove the plugin link from application.properties

Note: for grails 1.3.7 grails --non-interactive run-app will not work, the switch should appear after the command, as described above.

+11
source

Another way to do this without using --non-interactive is to configure this in scripts/ .

Add this block to scripts/_Events.groovy :

 def resolveDependenciesWasInteractive = false eventResolveDependenciesStart = { resolveDependenciesWasInteractive = isInteractive isInteractive = false } eventResolveDependenciesEnd = { isInteractive = resolveDependenciesWasInteractive } 

Taken from: http://ldaley.com/post/2616518761/disabling-grails-plugin-upgrade-confirmation

+1
source

Source: https://habr.com/ru/post/903045/


All Articles