Grails 2.2.1应用程序无法解决依赖关系 [英] Grails 2.2.1 app cannot resolve dependencies

查看:248
本文介绍了Grails 2.2.1应用程序无法解决依赖关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了在新的mbp上设置现有grails(2.2.1)项目时遇到的问题。每当我尝试运行任何grails命令时,都会收到依赖项解析错误。看起来,它不能解决像下面这样的编译阶段标记的任何grails插件。

I am running into problems setting up an existing grails (2.2.1) project on a new mbp. I get dependency resolution errors whenever I try to run any grails command. It seems that it cannot resolve any grails plugins that are marked with the compile phase like below.

compile ":cache:1.0.0"

我查看了org.grails.plugins存储库以确保插件存在,他们都似乎在那里。我不能为了我的生活找出为什么它不能解决这些插件。一位同事表示,他升级到了grails 2.4,获得了解决方案的相关信息并下载到他的本地缓存,然后回到grails 2.2.1来运行该应用程序。

I've taken a look at the org.grails.plugins repository to make sure the plugins exist, and they all appear to be there. I cannot for the life of me figure out why it cannot resolve these plugins. A coworker said he upgraded to grails 2.4, got the dependencies to resolve and download to his local cache, then went back to grails 2.2.1 to run the app. I'd rather figure this out than have to do that.

以前看过类似的东西吗?

Anyone seen something like this before?

推荐答案

最近我遇到了与Grails 2.2.0相同的问题。
我已经通过将此存储库添加到 BuildConfig.groovy 来修复它:
$ b

Recently I faced the same problem with Grails 2.2.0. I've fixed it by adding this repository to BuildConfig.groovy:

mavenRepo 'https://repo.grails.org/grails/plugins'

http://grails.1312388 .n4.nabble.com / Grails-central-repo-seemingly-missing-plugin-versions-td4658720.html

这篇关于Grails 2.2.1应用程序无法解决依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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