java - 无法解析 grails 2.3.7 中的 :spring-securty-core:2. 0-RC2

标签 java spring grails

我尝试关注有关 spring-security-core 2.0 的各种线程,但无法添加它。这是我收到的错误消息

| Error Resolve error obtaining dependencies: Could not find artifact org.grails.plugins:spring-securty-core:zip:2.0-RC2 in grailsCentral (http://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace) | Error Resolve error obtaining dependencies: Could not find artifact org.grails.plugins:spring-securty-core:zip:2.0-RC2 in grailsCentral (http://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace) | Error Resolve error obtaining dependencies: Could not find artifact org.grails.plugins:spring-securty-core:zip:2.0-RC2 in grailsCentral (http://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace) | Error Could not find artifact org.grails.plugins:spring-securty-core:zip:2.0-RC2 in grailsCentral (http://repo.grails.org/grails/plugins) | Run 'grails dependency-report' for further information.

这是我的 BuildConfig.groovy 文件,减去注释:

grails.servlet.version = "3.0" /
grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.work.dir = "target/work"
grails.project.target.level = 1.6
grails.project.source.level = 1.6

grails.project.fork = [
    test: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, daemon:true],
    run: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false],
    war: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false],
    console: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256]
]

grails.project.dependency.resolver = "maven" // or ivy
grails.project.dependency.resolution = {
    inherits("global") {
    }
    log "error"
    checksums true
    legacyResolve false

    repositories {
        grailsPlugins()
        grailsHome()
        mavenLocal()
        grailsCentral()
        mavenCentral()

        mavenRepo 'http://repo.spring.io/milestone'
    }

    dependencies {
        runtime 'mysql:mysql-connector-java:5.1.30'
    }

    plugins {
        build ":tomcat:7.0.52.1"

        compile ":scaffolding:2.0.2"
        compile ':cache:1.1.1'
        compile ':spring-securty-core:2.0-RC2'
        runtime ":hibernate:3.6.10.9" // or ":hibernate4:4.3.4"
        runtime ":database-migration:1.3.8"
        runtime ":jquery:1.11.0.2"
        runtime ":resources:1.2.7"
    }
}
  • Grails 2.3.7
  • JDK 1.7.0u55

最佳答案

这似乎是安全词中的拼写错误,您可以尝试使用这个来代替:

compile ':spring-security-core:2.0-RC2'

关于java - 无法解析 grails 2.3.7 中的 :spring-securty-core:2. 0-RC2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23155789/

相关文章:

java - 从 2.5.6 到 4.3.6 的 Spring 迁移

java - 如何将 url 作为路径参数传递?在 JAX-RS @Path 中

swift - 适用于 iOS 的 Spring RestTemplate (Swift 4)

grails - 如何以通用方式在域类上调用GORM方法?

grails - 在 Grails Spring 应用程序中获取 LDAP 属性 memberof

grails - 条件-针对串联的两列进行搜索

java - 混淆器 : Obfuscated jar is not working but un-obfuscated jar is working

java - 根据 XML 架构 (XSD) 验证 JSON

Java 并发 :Is ReentrantLock a wrong design?

java - 为什么 Spring Boot 中父类(super class)上的 @Bean 泛型创建方法的调用晚于子类上的创建方法?