首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Grails可搜索插件安装错误

Grails可搜索插件安装错误
EN

Stack Overflow用户
提问于 2013-04-26 18:07:29
回答 1查看 1K关注 0票数 0

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

我已经添加了一个命名代理,它已经设置好了。这似乎不是问题所在。

我更改了buildConfig.groovy,如下所示:

代码语言:javascript
复制
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/"
}

和以下依赖项

代码语言:javascript
复制
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'
}

编译时,我得到了以下错误

代码语言:javascript
复制
| 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         ::

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

诸若此类。

有什么提示吗?

谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-04-26 18:18:04

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

代码语言:javascript
复制
    dependencies {
    // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g.

    }

    plugins {
         compile ":searchable:0.6.4"
    }
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16233872

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档