找不到 grails-2.3.7 插件/存储库 [英] grails-2.3.7 plugins/repository not found
问题描述
突然找不到我的 Grails 应用程序由于某些插件而出错.我认为存储库已被删除或移动到某个地方.
Suddenly my Grails application having error by causing of some plugins are not found. I think the repository has been removed or move somewhere.
我的 BuildConfig.groovy 上的代码:
Code on my 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"
.....
从今天起我的 Grails 应用程序出现错误:
Having Error on my Grails Apps from today:
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
注意:grails 存储库已从 maven 中删除 http://maven.restlet.org/org/一个>
Note: grails repository has been removed from maven http://maven.restlet.org/org/
谁能建议我解决这些错误?提前致谢!!
Can anyone suggest me to resolve those errors? Thanks in advance!!
推荐答案
在某些版本的 Grails 中,中央存储库存在临时问题.您可以通过以下两种方式之一解决此问题:
There is a temporary problem with the central repository in some versions of Grails. You can work around this in one of two ways:
1) 在 BuildConfig 中使用 Aether 作为依赖解析器(推荐):
1) Use Aether as your dependency resolver, in BuildConfig (recommended):
grails.project.dependency.resolver = "maven"
2) 如果您必须使用 Ivy(不推荐),请将以下存储库添加到 BuildConfig 中的存储库中:
2) If you must use Ivy (not recommended) then add the following repo to your repositories in BuildConfig:
mavenRepo "http://repo.grails.org/grails/plugins/"
这篇关于找不到 grails-2.3.7 插件/存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!