我尝试关注有关 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/