我正在尝试在Grails2.5.6中使用 plugin。根据文档,我在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 (https://repo.grails.org/grails/plugins)中找到工件org.grails.plugins:远程控制:jar:2.0
令人困惑的是,插件似乎正是它应该在的地方:

我觉得我漏掉了一些明显的东西--是什么?
发布于 2018-11-12 09:33:57
文档在另一种方式上已经过时了:添加依赖项是不必要的,而且实际上会导致问题中的解决错误(我发现插件源代码,而不是作为代码依赖的JAR )。
移除后
compile "org.grails.plugins:remote-control:2.0"在dependencies中,Grails正确地刷新依赖项并使用插件运行。
https://stackoverflow.com/questions/53221877
复制相似问题