无法安装Grails MongoDB插件

编程入门 行业动态 更新时间:2024-10-27 12:41:13
本文介绍了无法安装Grails MongoDB插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我使用GRails 2.4.3每当我尝试安装Grails MongoDB插件 grails/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。

解决方案

我面临同样的问题。在 search.maven/#browse|1458455185,如插件中所述。所以下载总是失败。

现在我将插件版本降级到 compile:mongodb:3.0.1。然后它运行良好。 谢谢:)

I am using GRails 2.4.3

Whenever I try to install the Grails MongoDB plugin grails/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 search.maven/#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插件

本文发布于:2023-07-25 09:03:20,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:插件   Grails   MongoDB

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!