无法安装Grails MongoDB插件 [英] Cannot install Grails MongoDB plugin
问题描述
我使用GRails 2.4.3每当我尝试安装Grails MongoDB插件
http://grails.org/plugin/mongodb
我得到这个错误:
|配置classpath
|下载:org / grails / grails-datastore-gorm-plugin-support / 3.1.0.RELEASE / grails-datastore-gorm-plugin-support-3.1 .0.RELEASE.pom
|下载:org / grails / grails-spring / 2.3.8 / grails-spring-2.3.8.pom
|下载:org / grails / grails-datastore-web /3.1.0.RELEASE/grails-datastore-web-3.1.0.RELEASE.pom
错误|
解决获取依赖关系的错误:无法读取org.grails的工件描述符:grails-datastore-gorm-plugin-support:jar:3.1.3.BUILD-SNAPSHOT(使用--stacktrace查看完整跟踪)
错误|
解决获取依赖关系的错误:无法读取org.grails的工件描述符:grails-datastore-gorm-plugin-support:jar:3.1.3.BUILD-SNAPSHOT(使用--stacktrace查看完整跟踪)
错误|
解决获取依赖关系的错误:无法读取org.grails的工件描述符:grails-datastore-gorm-plugin-support:jar:3.1.3.BUILD-SNAPSHOT(使用--stacktrace查看完整跟踪)
错误|
解决获取依赖关系的错误:无法读取org.grails的工件描述符:grails-datastore-gorm-plugin-support:jar:3.1.3.BUILD-SNAPSHOT(使用--stacktrace查看完整跟踪)
错误|
无法读取org.grails的工件描述符:grails-datastore-gorm-plugin-support:jar:3.1.3.BUILD-SNAPSHOT
|运行'grails dependency-report'以获取更多信息。
IDEA hook:找不到Grails!
错误|
java.lang.NullPointerException
错误|
at org.jetbrains.groovy.grails.rt.Agent $ 2.run(Agent.java:135)
错误|
at java.lang.Thread.run(Thread.java:744)
这些是我的buildconfig设置:
依赖关系{
...
compile'org.grails:grails-datastore -gorm-plugin-support:3.1.0.RELEASE'
}
plugins {
..
compile':mongodb:3.0.2'
}
即使我加入
compile'org.grails:grails-datastore-gorm:latest.release'
compile'org.grails:grails-datastore-core:latest.release'
test'org.grails :grails-datastore-simple:latest.release'
对于插件页面中提到的依赖关系这是我在Grails 2.4中不应该有的),我得到了同样的错误。
另外,这个插件从来没有为我工作好几个月,但我还没有看到任何其他人在线这个问题。我是唯一一个遇到这种情况的人吗?
我该如何去安装这个插件?
Thanks。
我面临同样的问题。在 http://search.maven.org/#browse|1458455185发现到目前为止还没有3.1.3 Release a>,如插件中所述。所以下载总是失败。
现在我将插件版本降级到 compile:mongodb:3.0.1。然后它运行良好。
谢谢:)
I am using GRails 2.4.3
Whenever I try to install the Grails MongoDB plugin http://grails.org/plugin/mongodb I get this error:
|Configuring classpath
|Downloading: org/grails/grails-datastore-gorm-plugin-support/3.1.0.RELEASE/grails-datastore-gorm-plugin-support-3.1.0.RELEASE.pom
|Downloading: org/grails/grails-spring/2.3.8/grails-spring-2.3.8.pom
|Downloading: org/grails/grails-datastore-web/3.1.0.RELEASE/grails-datastore-web-3.1.0.RELEASE.pom
Error |
Resolve error obtaining dependencies: Failed to read artifact descriptor for org.grails:grails-datastore-gorm-plugin-support:jar:3.1.3.BUILD-SNAPSHOT (Use --stacktrace to see the full trace)
Error |
Resolve error obtaining dependencies: Failed to read artifact descriptor for org.grails:grails-datastore-gorm-plugin-support:jar:3.1.3.BUILD-SNAPSHOT (Use --stacktrace to see the full trace)
Error |
Resolve error obtaining dependencies: Failed to read artifact descriptor for org.grails:grails-datastore-gorm-plugin-support:jar:3.1.3.BUILD-SNAPSHOT (Use --stacktrace to see the full trace)
Error |
Resolve error obtaining dependencies: Failed to read artifact descriptor for org.grails:grails-datastore-gorm-plugin-support:jar:3.1.3.BUILD-SNAPSHOT (Use --stacktrace to see the full trace)
Error |
Failed to read artifact descriptor for org.grails:grails-datastore-gorm-plugin-support:jar:3.1.3.BUILD-SNAPSHOT
|Run 'grails dependency-report' for further information.
IDEA hook: Grails not found!
Error |
java.lang.NullPointerException
Error |
at org.jetbrains.groovy.grails.rt.Agent$2.run(Agent.java:135)
Error |
at java.lang.Thread.run(Thread.java:744)
These are my buildconfig settings:
dependencies{
...
compile 'org.grails:grails-datastore-gorm-plugin-support:3.1.0.RELEASE'
}
plugins{
..
compile ':mongodb:3.0.2'
}
Even if I add
compile 'org.grails:grails-datastore-gorm:latest.release'
compile 'org.grails:grails-datastore-core:latest.release'
test 'org.grails:grails-datastore-simple:latest.release'
To the dependencies as mentioned in the plugin page (which I shouldn't have to since I am on Grails 2.4), I get the same error.
Also to add, this plugin has never worked for me for months, yet I have not seen anyone else with this issue online. Am I the only one experiencing this?
How do I go about installing this plugin? Thanks.
I was facing the same issue. Found out that there is no 3.1.3 Release till now in http://search.maven.org/#browse|1458455185 as mentioned in the plugin. So the download always failed.
Now I downgraded the plugin version to compile ":mongodb:3.0.1". Then it worked fine. Thanks :)
这篇关于无法安装Grails MongoDB插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!