grails - 为什么 Grails 一直要求我 'upgrade' 到较低的插件版本?

标签 grails plugins dependencies

我正在尝试使用资源 1.2.RC3,但每次编译或尝试运行时都会收到以下提示。我已经运行了依赖报告,它正确地报告 1.2.RC3 已针对那些请求 1.1.6 或更高版本的内容驱逐了 1.1.6。这与 RC 版本有关吗?有什么办法可以让它停止询问吗?

You currently already have a version of the plugin installed [resources-1.2.RC3]. Do you want to update to [resources-1.1.6]? [y,n]

最佳答案

Is there any way I can get it to stop asking?

找出哪个插件正在请求 1.1.6 并排除 BuildConfig 中的传递依赖项。

plugins {
  compile(':some-plugin:1.2.3') {
    excludes 'resources'
  }
}

我遇到了同样的问题,无法依靠通常的逐出逻辑来避免降级提示,唯一可靠的选择是显式排除。如果有问题的插件是使用已弃用的 install-plugin 脚本安装的,那么您必须删除在 application.properties 中添加的行并添加正确的 BuildConfig 依赖项(改为排除)。

关于grails - 为什么 Grails 一直要求我 'upgrade' 到较低的插件版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14447528/

相关文章:

java - 创建新的 Grails 2.3 应用程序时出现 ForkedTomcatServer.groovy 错误

grails - 我如何创建 grails 存储库的本地副本

scala - 为什么 Scala 在 IntelliJ 中的大型 Java/Scala 项目上编译失败?

c# - 加载 Microsoft.AspNet.WebApi.Client System.Net.Http.Formatting.dll 时尝试为 T4 文件查找 "missing dependency"

gradle - 查看存储库中是否存在Gradle构建中工件的较新版本

c++ 从 dll 导入函数 - 我的 dll 不导出 lib

grails - 在 Grails GSP 中,Spring MVC 的 <input name ="entity.list[0].field"> 等价于什么?

grails - 域类中addTo的逆函数是什么

ios - 找不到适用于 iOS PhoneGap 的 PushPlugin

php - CakePHP 2.x 插件和插件文件夹之间有什么区别?