[英]Grails searchable plugin installation error
I am using grails 2.2.1 and trying to install the searchable plugin version 0.6.4. 我正在使用grails 2.2.1,并尝试安装可搜索的插件版本0.6.4。
I've added a named proxy and it is set. 我添加了一个命名代理,并且已设置。 This seems to be not the problem.
这似乎不是问题。
I've changed the buildConfig.groovy as follows: 我将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/"
}
and the following dependencies 和以下依赖项
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'
}
When compiling I got the following error 编译时出现以下错误
| 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 ::
::::::::::::::::::::::::::::::::::::::::::::::
and so on. 等等。
Any hint? 有什么提示吗?
Thanks 谢谢
Put it in Plugins block. 将其放在插件块中。 Right now its in dependencies.
现在,它的依赖关系。
dependencies {
// specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g.
}
plugins {
compile ":searchable:0.6.4"
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.