【问题标题】:Upgrade application to Grails 2.1.1将应用程序升级到 Grails 2.1.1
【发布时间】:2013-08-19 19:32:56
【问题描述】:

我已经使用grails upgrade 命令升级了一个grails 应用程序。但问题是当我尝试使用grails run-app 运行应用程序时,它显示出未解决的依赖错误,如前所述:|错误无法解决依赖关系(在 BuildConfig 中将日志级别设置为“警告”。 roovy 了解更多信息):

  • org.springframework.security:org.springframework.security.core:3.0.2.RELEASE
  • org.springframework.security:org.springframework.security.web:3.0.2.RELEASE

我应该怎么做才能解决依赖关系并运行应用程序。我尝试使用grails clean 清理应用程序并尝试安装依赖项但没有成功。

任何帮助都将不胜感激。 谢谢。

【问题讨论】:

    标签: grails


    【解决方案1】:

    我怀疑您需要将应用程序的 spring-security-core 插件依赖项升级到更新的版本。在不同的 Maven 存储库中,不同的工件 ID 下有两组不同的 Spring 相关 JAR。 Maven Central 中的称为spring-*SpringSource EBR 中的称为org.springframework.*spring-security-core Grails 插件的旧版本依赖于 EBR 构件,新版本使用 Maven Central 中的构件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-11-26
      • 2014-05-07
      • 1970-01-01
      • 1970-01-01
      • 2017-06-27
      • 2012-11-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多