Grails错误安装插件rest-client-builder 1.0.2,错误的模块描述符

时间:2012-11-27 19:09:08

标签: grails plugins dependencies

使用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'

1 个答案:

答案 0 :(得分:7)

看起来你把它放在dependencies部分,但它应该在plugins部分:

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

您应该移除application.properties脚本中install-plugin脚本添加的插件,并且仅将其插入BuildConfig.groovy