使用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'
答案 0 :(得分:7)
看起来你把它放在dependencies
部分,但它应该在plugins
部分:
plugins {
compile(':rest-client-builder:1.0.2') {
export = false
}
}
您应该移除application.properties
脚本中install-plugin
脚本添加的插件,并且仅将其插入BuildConfig.groovy
。