代码之家  ›  专栏  ›  技术社区  ›  Raphael

即使有插件,从Grails插件库下载也会失败

  •  0
  • Raphael  · 技术社区  · 6 年前

    我正试着使用 remote-control plugin 使用Grails2.5.6。根据文档,我将以下内容添加到 BuildConfig.groovy :

    repositories {
        ...
        mavenRepo "http://dl.bintray.com/alkemist/maven/"
    }
    
    dependencies {
        ...
        compile "org.grails.plugins:remote-control:2.0"
    }
    
    plugins {
        test ":remote-control:2.0"
    }
    

    现在,输出 grails refresh-dependencies

    | Loading Grails 2.5.6
    | Configuring classpath
    | Downloading: org/grails/plugins/remote-control/2.0/remote-control-2.0.pom
    | Downloading: io/remotecontrol/remote-core/0.7/remote-core-0.7.pom
    | Downloading: io/remotecontrol/remote-transport-http/0.7/remote-transport-http-0.7.pom
    | Downloading: org/grails/plugins/remote-control/2.0/remote-control-2.0.zip
    | Downloading: io/remotecontrol/remote-transport-http/0.7/remote-transport-http-0.7.jar
    | Downloading: io/remotecontrol/remote-core/0.7/remote-core-0.7.jar
    | Error Resolve error obtaining dependencies: Could not find artifact org.grails.plugins:remote-control:jar:2.0 in grailsCentral (https://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
    | Error Resolve error obtaining dependencies: Could not find artifact org.grails.plugins:remote-control:jar:2.0 in grailsCentral (https://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
    | Error Resolve error obtaining dependencies: Could not find artifact org.grails.plugins:remote-control:jar:2.0 in grailsCentral (https://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
    | Error Could not find artifact org.grails.plugins:remote-control:jar:2.0 in grailsCentral (https://repo.grails.org/grails/plugins)
    

    为了突出这一点,我们得到了

    在grailsCentral中找不到工件org.grails.plugins:remote-control:jar:2.0( https://repo.grails.org/grails/plugins

    令人困惑的是,插件似乎正是它应该位于的位置:

    enter image description here

    我觉得我错过了一些明显的东西——那是什么?

    1 回复  |  直到 6 年前
        1
  •  0
  •   Raphael    6 年前

    插件 源代码,而不是可用作代码依赖项的JAR)。

    移除后

    compile "org.grails.plugins:remote-control:2.0"
    

    从…起 dependencies