从 Grails 插件存储库下载失败,即使插件存在

Download from Grails plugin repository fails even though plugin is there

我正在尝试将 remote-control plugin 与 Grails 2.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)

为了突出显示,我们得到

Could not find artifact org.grails.plugins:remote-control:jar:2.0 in grailsCentral (https://repo.grails.org/grails/plugins)

令人困惑的部分是插件似乎恰好在它应该在的位置:

我觉得我遗漏了一些明显的东西 -- 它是什么?

该文档以另一种方式过时:添加依赖项不是必需的,并且实际上会导致问题中的解析错误(我找到了 plugin 来源,而不是JAR 可用作代码依赖项)。

删除后

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

dependencies 开始,Grails 正确地刷新依赖项并与插件一起运行。