Md.*_*zon 6 grails grails-plugin maven
突然发现我的Grails应用程序因导致某些插件而出错.我认为存储库已被删除或移动到某处.
BuildConfig.groovy上的代码:
log "warn"
checksums true
legacyResolve false
.....
compile ":db-reverse-engineer:0.5"
compile ":cache:1.0.1"
compile ":jaxrs:0.10"
compile ":jasper:1.8.0"
.....
Run Code Online (Sandbox Code Playgroud)
从今天起我的Grails应用程序出现错误:
Error |
Resolve error obtaining dependencies: Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):
- org.grails.plugins:db-reverse-engineer:0.5
- org.grails.plugins:jaxrs:0.10
- org.grails.plugins:jasper:1.8.0
org.codehaus.groovy.grails.resolve.ResolveException: Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):
- org.grails.plugins:db-reverse-engineer:0.5
- org.grails.plugins:jaxrs:0.10
- org.grails.plugins:jasper:1.8.0
Run Code Online (Sandbox Code Playgroud)
注意:grails存储库已从maven中删除http://maven.restlet.org/org/
谁能建议我解决这些错误?提前致谢!!
Gra*_*her 17
在某些版本的Grails中,中央存储库存在临时问题.您可以通过以下两种方式之一解决此问题:
1)在BuildConfig中使用Aether作为依赖性解析器(推荐):
grails.project.dependency.resolver = "maven"
Run Code Online (Sandbox Code Playgroud)
2)如果你必须使用Ivy(不推荐),那么在BuildConfig中将以下repo添加到你的存储库:
mavenRepo "http://repo.grails.org/grails/plugins/"
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2904 次 |
最近记录: |