Unable to install Grails MongoDB plugin

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 listed on the plugin page (which I should not do since I have been on Grails 2.4), I get the same error.

Also, to add, this plugin has never worked for me for several months, but I have not seen anyone else with this problem on the Internet. Am I the only one who is experiencing this?

How do I install this plugin? Thank.

+4
source share
2 answers

. , 3.1.3 Release http://search.maven.org/#browse|1458455185, . .

": mongodb: 3.0.1" . . :)

+3

, 3.0.2 , 3.0.2 , , SNAPSHOT RELEASE.

plugins {
    compile (":mongodb:3.0.2") {
        excludes 'grails-datastore-gorm-plugin-support'
        excludes 'grails-datastore-gorm'
        excludes 'grails-datastore-core'
    }
}

:

dependencies {
    compile 'org.grails:grails-datastore-gorm-plugin-support:3.1.3.RELEASE'
    compile 'org.grails:grails-datastore-gorm:3.1.3.RELEASE'
    compile 'org.grails:grails-datastore-core:3.1.3.RELEASE'
}

: 3.0.2 pom, 3.1.2.RELEASE, , 3.1.3 , , - . ~/.m2, " grails" 3.1.2.RELEASE.

+8

All Articles