Cannot install Grails MongoDB plugin Cannot install Grails MongoDB plugin mongodb mongodb

Cannot install Grails MongoDB plugin


I don't know exactly why 3.0.2 has those dependencies and if 3.0.2 is ok to use but if you want to get it working then you need to exclude the SNAPSHOT dependencies and use the RELEASE versions.

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

and then in dependencies, pull the correct ones in:

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'}

Edit: actually on closer inspection of the 3.0.2 pom, the dependency should be 3.1.2.RELEASE so the fact that 3.1.3 is being used means something screwy is going on. I cleaned out my ~/.m2 directory and 'grails dependency-report' now shows the correct 3.1.2.RELEASE dependency.


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 :)