我正在使用grails 2.4.4。当我将mongodb插件从3.0.1升级到最新的3.0.2时,它无法找到并安装一个jar。它的抛出:
| 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)
我在BuildConfig.groovy中的存储库配置为:
inherits true
mavenRepo "https://repo1.maven.org/maven2/"
mavenRepo "https://repo.grails.org/grails/plugins"
grailsPlugins()
grailsHome()
grailsCentral()
mavenLocal()
//mavenCentral()
最佳答案
我找到了解决方案。 mongodb插件如何尝试提取的 BUILD-SNAPSHOT 版本grails-datastore-gorm-plugin-support ,在maven中不可用。
所以我在BuildConfig依赖项中添加了它的 RELEASE 版本
compile 'org.grails:grails-datastore-gorm-plugin-support:3.1.3.RELEASE'
而且有效。
关于mongodb - 无法下载Grails Datastore Gorm 3.1.3版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26772296/