我正在尝试将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)
突出显示,我们得到
在grailsCentral(https://repo.grails.org/grails/plugins)中找不到工件org.grails.plugins:remote-control:jar:2.0
令人困惑的部分是,该插件似乎正好在应有的位置:
我觉得我缺少明显的东西-这是什么?
答案 0 :(得分:0)
文档以另一种方式过时了:添加依赖项不是必需的,实际上确实会解决问题(我找到了 plugin 源,而不是可用作代码依赖项的JAR。 )。
删除后
compile "org.grails.plugins:remote-control:2.0"
从dependencies
开始,Grails正确刷新了依赖关系并与插件一起运行。