首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尽管存在插件,但从Grails插件库下载失败。

尽管存在插件,但从Grails插件库下载失败。
EN

Stack Overflow用户
提问于 2018-11-09 08:04:06
回答 1查看 303关注 0票数 0

我正在尝试在Grails2.5.6中使用 plugin。根据文档,我在BuildConfig.groovy中添加了以下内容

代码语言:javascript
复制
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的输出是:

代码语言:javascript
复制
| 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

令人困惑的是,插件似乎正是它应该在的地方:

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-11-12 09:33:57

文档在另一种方式上已经过时了:添加依赖项是不必要的,而且实际上会导致问题中的解决错误(我发现插件源代码,而不是作为代码依赖的JAR )。

移除后

代码语言:javascript
复制
compile "org.grails.plugins:remote-control:2.0"

dependencies中,Grails正确地刷新依赖项并使用插件运行。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53221877

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档