我正在尝试将 Grails 应用程序配置为使用最新的稳定SpringSec-CAS 插件,但我终生无法找到 SpringSec 和我应该使用的插件的正确版本。
我在 Grails 2.3.6 上。我应该包括什么BuildConfig.groovy
来获得最新的稳定版本?我有:
plugins {
compile ":spring-security-core:2.0-RC2"
compile ":spring-security-cas:2.0-RC1"
}
当我指定 SpringSec 2.0-RC2 和 SpringSec-CAS 2.0-RC1 时,运行时出现以下错误grails run-app
:
| Error Resolve error obtaining dependencies: The following artifacts could not be resolved: org.springframework.security:spring-security-web:jar:3.2.0.RC1, org.springframework.security:spring-security-cas:jar:3.2.0.RC1: Could not find artifact org.springframework.security:spring-security-web:jar:3.2.0.RC1 in mylocalartifactory_artifactory_libs-snapshots-local_ (http://mylocalartifactory/artifactory/libs-snapshots-local/) (Use --stacktrace to see the full trace)
| Error Resolve error obtaining dependencies: The following artifacts could not be resolved: org.springframework.security:spring-security-web:jar:3.2.0.RC1, org.springframework.security:spring-security-cas:jar:3.2.0.RC1: Could not find artifact org.springframework.security:spring-security-web:jar:3.2.0.RC1 in mylocalartifactory_artifactory_libs-snapshots-local_ (http://mylocalartifactory/artifactory/libs-snapshots-local/) (Use --stacktrace to see the full trace)
| Error Resolve error obtaining dependencies: The following artifacts could not be resolved: org.springframework.security:spring-security-web:jar:3.2.0.RC1, org.springframework.security:spring-security-cas:jar:3.2.0.RC1: Could not find artifact org.springframework.security:spring-security-web:jar:3.2.0.RC1 in mylocalartifactory_artifactory_libs-snapshots-local_ (http://mylocalartifactory/artifactory/libs-snapshots-local/) (Use --stacktrace to see the full trace)
| Error The following artifacts could not be resolved: org.springframework.security:spring-security-web:jar:3.2.0.RC1, org.springframework.security:spring-security-cas:jar:3.2.0.RC1: Could not find artifact org.springframework.security:spring-security-web:jar:3.2.0.RC1 in mylocalartifactory_artifactory_libs-snapshots-local_ (http://mylocalartifactory/artifactory/libs-snapshots-local/)
我认为我的存储库设置不正确...?如何修改我BuildConfig.groovy
的以从 Maven Central 中提取这些部门?
运行 Grails 依赖报告:
+--- org.grails.plugins:spring-security-core:2.0-RC2
| >>>> org.springframework.security:spring-security-web:3.2.0.RC1
+--- org.grails.plugins:spring-security-cas:2.0-RC1
| \--- org.jasig.cas.client:cas-client-core:3.2.1
| >>>> org.springframework.security:spring-security-cas:3.2.0.RC1
仍然不能 100% 确定问题是什么。