1

我正在尝试将 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% 确定问题是什么。

4

1 回答 1

4

添加 mavenRepo“ http://repo.spring.io/milestone/ ”为我解决了依赖问题。

于 2014-07-17T19:16:08.610 回答