Grails 2.2.1 app cannot resolve dependencies

随声附和 提交于 2020-01-07 04:50:50

问题


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"

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?


回答1:


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



来源:https://stackoverflow.com/questions/28975041/grails-2-2-1-app-cannot-resolve-dependencies

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!