1

当我需要 grails 2.2.3 的可搜索 0.6.5 插件时,我将 BuildConfigh.groovy 修改如下:

dependencies {

compile ":searchable:0.6.5"
}

plugins {
    runtime ":hibernate:$grailsVersion"
    runtime ":jquery:1.8.3"
    runtime ":resources:1.2"
    test(":spock:0.7") {
        exclude "spock-grails-support"}
    // Uncomment these (or add new ones) to enable additional resources capabilities
    //runtime ":zipped-resources:1.0"
    //runtime ":cached-resources:1.0"
    //runtime ":yui-minify-resources:0.1.5"

    build ":tomcat:$grailsVersion"

    runtime ":database-migration:1.3.2"

    compile ':cache:1.0.1'
    compile ":searchable:0.6.5"
}

保存文件后,我刷新依赖项以安装插件,但收到以下消息:

Loading Grails 2.2.3
| Configuring classpath
| Downloading: searchable-0.6.5.pom.sha1
:: problems summary ::
:::: ERRORS
    grailsCentral: bad organisation found in http://grails.org/plugins/grails-searchable/tags/RELEASE_0_6_5/searchable-0.6.5.pom: expected='' found='org.grails.plugins'
| Downloading: searchable-0.6.5.pom.sha1
:: problems summary ::
:::: ERRORS
    grailsCentral: bad organisation found in http://grails.org/plugins/grails-searchable/tags/RELEASE_0_6_5/searchable-0.6.5.pom: expected='' found='org.grails.plugins'

| Downloading: searchable-0.6.5.pom.sha1
:: problems summary ::
:::: ERRORS
    grailsCentral: bad organisation found in http://grails.org/plugins/grails-searchable/tags/RELEASE_0_6_5/searchable-0.6.5.pom: expected='' found='org.grails.plugins'
| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):
- :searchable:0.6.5

Process was killed

我认为这可能是我的互联网问题,但我检查了互联网连接是否正常。你遇到过这样的问题吗?谁能帮我解决安装可搜索 0.6.5 的问题?非常感谢。

4

1 回答 1

1

您不能将 0.6.5 版本与 2.2.3 一起使用 - 请参阅插件页面上的注释:http: //grails.org/plugin/searchable

使用版本 0.6.4。唯一的区别是让插件在 2.3 中工作的微不足道的修复。

于 2013-10-21T04:52:42.327 回答