【问题标题】:How to fix this Grails error?如何修复这个 Grails 错误?
【发布时间】:2014-06-21 14:56:51
【问题描述】:

我尝试安装 Spring Security 核心插件,但出现此错误:

Loading Grails 2.2.4
| Configuring classpath
| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):
- org.springframework.security:spring-security-core:3.2.0.RC1
- org.springframework.security:spring-security-web:3.2.0.RC1

我该如何解决?

【问题讨论】:

  • 您要安装什么版本的 spring-security?
  • 一定要试试grails cleangrails refresh-dependencies
  • 我已经完成了 clean 和 refresh-dependencies
  • 将此代码放入存储库块中。 mavenRepo 'http://repo.spring.io/milestone'
  • 已安装 Spring 安全性,但现在出现此错误:错误 2014-05-15 14:48:33,891 [http-bio-8080-exec-5] 错误 [/dipl].[default ] - servlet [default] 的 Servlet.service() 在路径 [/dipl] 的上下文中抛出异常。

标签: grails grails-2.2


【解决方案1】:

您需要将自定义快照/rc 存储库添加到 BuildConfigs 存储库块

repositories {
  mavenRepo "http://repo.spring.io/milestone/"
}

【讨论】:

  • 这增加了弹簧安全,但我仍然有一个错误:错误 2014-05-15 14:48:33,891 [http-bio-8080-exec-5] 错误 [/dipl].[默认] - 在路径 [/dipl] 的上下文中,servlet [default] 的 Servlet.service() 引发异常。它说构建路径不完整
猜你喜欢
  • 2020-06-17
  • 2020-10-06
  • 2019-04-23
  • 2021-09-11
  • 1970-01-01
  • 2017-09-02
  • 2016-10-09
  • 2016-09-28
  • 2023-04-02
相关资源
最近更新 更多