Grails无法解析插件

Eri*_*son 5 grails grails-plugin

当我尝试运行grails应用程序时,我被告知grails无法解决以下依赖项:

            ::::::::::::::::::::::::::::::::::::::::::::::

            ::          UNRESOLVED DEPENDENCIES         ::

            ::::::::::::::::::::::::::::::::::::::::::::::

            :: org.grails.plugins#code-coverage;1.1.8: not found

            :: org.grails.plugins#testing;0.5: not found

            ::::::::::::::::::::::::::::::::::::::::::::::


Failed to resolve plugins.
Run Code Online (Sandbox Code Playgroud)

于是,我就grails install-plugin code-coveragegrails install-plugin testing,并获得:

Plugin not found for name [code-coverage] and version [not specified]
Run Code Online (Sandbox Code Playgroud)

(指定版本不应该是必要的,也没有帮助.)

这里发生了什么事?

小智 4

我也遇到过类似的问题。看看http://jira.codehaus.org/browse/GRAILS-6427它对我有帮助。

我听从了费罗兹·潘瓦斯卡 (Feroz Panwaskar) 的说法:

“作为解决方法,我发现您可以简单地重新安装无法解析的插件。从 application.properties 中删除插件引用并运行 install-plugin 命令。”