【问题标题】:Grails error installing plugin rest-client-builder 1.0.2, bad module descriptorGrails 安装插件 rest-client-builder 1.0.2 时出错,模块描述符错误
【发布时间】:2012-11-15 11:47:23
【问题描述】:

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

【问题讨论】:

    标签: grails plugins dependencies


    【解决方案1】:

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

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

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

    【讨论】:

    • 是的,这就是问题所在……ty,Burt。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-22
    • 2020-12-10
    • 2016-12-25
    • 2012-12-25
    • 1970-01-01
    相关资源
    最近更新 更多