未找到grails-2.3.7插件/存储库 [英] grails-2.3.7 plugins/repository not found

查看:236
本文介绍了未找到grails-2.3.7插件/存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

突然间,我的Grails应用程序出现了错误,导致一些插件没有找到。我认为该存储库已被删除或移动到某处。



我的BuildConfig.groovy上的代码:

  logwarn
checksums true
legacyResolve false
.....
compile:db-reverse-engineer:0.5
编译:cache:1.0.1
compile:jaxrs:0.10
compile:jasper:1.8.0
.....

从今天开始在我的Grails应用程序中出错:

 错误| 
解决获取依赖关系的错误:无法解析依赖关系(在BuildConfig.groovy中将日志级别设置为'warn'以获取更多信息):

- 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:无法解析依赖关系(在BuildConfig.groovy中将日志级别设置为'warn'以获取更多信息):

- 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 /



任何人都可以建议我解决这些错误吗?提前致谢!

解决方案

在某些版本的Grails中,存在一个暂时的问题。您可以通过以下两种方式之一解决此问题:
$ b $ 1)在BuildConfig中使用Aether作为您的依赖项解析器(推荐):

  grails.project.dependency.resolver =maven

2)如果您必须使用Ivy(不推荐),那么在BuildConfig中将以下回购添加到您的存储库中:

  mavenRepohttp://repo.grails.org/grails/plugins/


Suddenly my Grails application having error by causing of some plugins are not found. I think the repository has been removed or move somewhere.

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"
.....

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

Note: grails repository has been removed from maven http://maven.restlet.org/org/

Can anyone suggest me to resolve those errors? Thanks in advance!!

解决方案

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) Use Aether as your dependency resolver, in BuildConfig (recommended):

grails.project.dependency.resolver = "maven"

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆