无法解决依赖关系。如何解决依赖错误?

时间:2016-04-15 09:25:31

标签: grails

我正在尝试将此插件集成到我的grails项目中。

https://grails.org/plugin/facebook-graph

我在BuildConfig文件中添加了dependcny。

  plugins {
        runtime ":hibernate:$grailsVersion"
        runtime ":jquery:1.8.3"
        runtime ":resources:1.1.6"

        // Uncomment these (or add new ones) to enable additional resources capabilities
        //runtime ":zipped-resources:1.0"
        //runtime ":cached-resources:1.0"
        //runtime ":yui-minify-resources:0.1.4"

        build ":tomcat:$grailsVersion"

        runtime ":database-migration:1.2.1"

        compile ':cache:1.0.1'
        compile "org.grails.plugins:facebook-graph:0.14"
    }

当我运行app时,我收到以下错误。

| Loading Grails 2.2.0
| Configuring classpath
| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

- org.grails.plugins:facebook-graph:0.14

看起来找不到存储库?如何找到此插件的正确存储库?我感谢任何帮助。谢谢!

更新

我的存储库定义如下:

 repositories {
        inherits true // Whether to inherit repository definitions from plugins

        grailsPlugins()
        grailsHome()
        grailsCentral()

        mavenLocal()
        mavenCentral()

        // uncomment these (or add new ones) to enable remote dependency resolution from public Maven repositories
        //mavenRepo "http://snapshots.repository.codehaus.org"
        //mavenRepo "http://repository.codehaus.org"
        //mavenRepo "http://download.java.net/maven/2/"
        //mavenRepo "http://repository.jboss.com/maven2/"
    }

1 个答案:

答案 0 :(得分:1)

compile ":facebook-graph:0.14"为我工作。摆脱org.grails.plugins