运行GRAILS run-app时如何跳过插件更新提示? [英] How to skip plugin update prompt when running GRAILS run-app?

查看:150
本文介绍了运行GRAILS run-app时如何跳过插件更新提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Grails RC3
开始一个新项目(Windows 7 64位Java 1.6)

安装了spring-security-core插件



现在每当我做GRAILS运行应用程序时,它都会提示我将webxml-1.4反复升级到1.3.1



我使用IntelliJ 10.5.3和控制台不让我输入NO,所以我不能使用IDE进行调试。



可能的解决方案我按优先顺序看到
- 找到一种跳过插件升级问题的方法
- 在某处依靠webxml手动修改spring-security-core配置1.4
- 切换到STS开发(控制台在STS中工作) p>

谢谢

解决方案

您可以尝试设置--non-interactive标志,它应该跳过提示。

  grails run-app --non-interactive 

您可以通过设置BuildConfig.groovy来管理grails中的插件依赖项。请参阅用户指南中的插件排除部分 -



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



请记住从application.properties中移除插件引用



注意:对于grails 1.3.7 grails --non-interactive run-app 不起作用,交换机必须按照上述命令行。


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

Installed spring-security-core plugin

Now whenever i do a GRAILS run-app it prompts me to upgrade webxml-1.4 to 1.3.1 over and over again

I use IntelliJ 10.5.3 and the console does not let me type NO so I can't use the IDE to debug.

Possible solutions I see in order of preference - Find a way to skip the plugin upgrade question - Manually modify the spring-security-core config somewhere to depend on webxml 1.4 - Switch to STS to develop (Console works in STS)

Thanks

解决方案

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

grails run-app --non-interactive

You can manage plugin dependencies in grails by setting this BuildConfig.groovy. See the plugin exclusions section in the User Guide -

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

Just remember to remove the plugin reference from application.properties

Note: for grails 1.3.7 grails --non-interactive run-app will not work the switch has to come after the command as above.

这篇关于运行GRAILS run-app时如何跳过插件更新提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆