Grails searchable插件安装错误

时间:2013-04-26 10:07:29

标签: grails grails-plugin grails-searchable

我正在使用grails 2.2.1并尝试安装可搜索的插件版本0.6.4。

我添加了一个命名代理并设置了它。这似乎不是问题。

我已将buildConfig.groovy更改为:

repositories {
    inherits true // Whether to inherit repository definitions from plugins

    grailsPlugins()
    grailsHome()
    grailsCentral()

    mavenLocal()
    mavenCentral()

    // uncomment these (or add new ones) to enable remote dependency resolution from public Maven repositories
    mavenRepo "http://snapshots.repository.codehaus.org"
    //mavenRepo "http://repository.codehaus.org"
    //mavenRepo "http://download.java.net/maven/2/"
    //mavenRepo "http://repository.jboss.com/maven2/"
}

以及以下依赖项

dependencies {
    // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g.
     compile ":searchable:0.6.4"
     runtime 'mysql:mysql-connector-java:5.1.22'
}

编译时出现以下错误

| Downloading: searchable-0.6.4.pom.sha1
:: problems summary ::
:::: WARNINGS
            ::::::::::::::::::::::::::::::::::::::::::::::

            ::          UNRESOLVED DEPENDENCIES         ::

            ::::::::::::::::::::::::::::::::::::::::::::::

            :: #searchable;0.6.4: java.text.ParseException: inconsistent module
descriptor file found in 'http://grails.org/plugins/grails-searchable/tags/RELEASE_0_6_4/searchable-0.6.4.pom': bad organisation: expected='' found='org.grails.plugins';

            ::::::::::::::::::::::::::::::::::::::::::::::


:::: ERRORS
            grailsCentral: bad organisation found in http://grails.org/plugins/grails-searchable/tags/RELEASE_0_6_4/searchable-0.6.4.pom: expected='' found='org.grails.plugins'

| Downloading: searchable-0.6.4.pom.sha1
:: problems summary ::
:::: WARNINGS
            ::::::::::::::::::::::::::::::::::::::::::::::

            ::          UNRESOLVED DEPENDENCIES         ::

            ::::::::::::::::::::::::::::::::::::::::::::::

等等。

任何提示?

由于

1 个答案:

答案 0 :(得分:3)

将其放入插件块中。现在它依赖于它。

    dependencies {
    // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g.

    }

    plugins {
         compile ":searchable:0.6.4"
    }
相关问题