5

使用 Grails 2.0.4,我正在尝试rest-client-builder:1.0.2使用此安装...

grails install-plugin rest-client-builder

...但 Grails 返回以下错误;我已经尝试过清理、刷新依赖项等,不断收到同样的错误......

:: #rest-client-builder;1.0.2: java.text.ParseException: inconsistent module descriptor file found in 'http://plugins.grails.org/grails-rest-client-builder/tags/RELEASE_1_0_2/rest-client-builder-1.0.2.pom': bad organisation: expected='' found='org.grails.plugins'; 

还尝试将插件链接为来自的依赖项BuildConfig.groovy,但我收到类似的错误...

compile (":rest-client-builder:1.0.2"){ export = false}

grailsCentral: bad organisation found in http://plugins.grails.org/grails-rest-client-builder/tags/RELEASE_1_0_2/rest-client-builder-1.0.2.pom: expected='' found='org.grails.plugins'
4

1 回答 1

7

看起来您将其放在该dependencies部分中,但它应该在该plugins部分中:

plugins {
   compile(':rest-client-builder:1.0.2') {
      export = false
   }
}

您应该删除脚本添加的仍在其中的插件,application.properties并且install-plugin只将它们放在BuildConfig.groovy.

于 2012-11-28T01:54:55.357 回答