gorm-mongodb icon indicating copy to clipboard operation
gorm-mongodb copied to clipboard

Unable to resolve class

Open martofeld opened this issue 9 years ago • 1 comments

With grails 2.4.4 when i try to use the plugin and compile the project, the plugin fails to import all these classes

import com.google.code.morphia.annotations.Transient import com.google.code.morphia.annotations.Embedded; import com.google.code.morphia.annotations.Id; import com.google.code.morphia.annotations.Version; import org.bson.types.ObjectId import com.google.code.morphia.annotations.Entity

finally throwing

Error executing plugin mongodb-morphia-0.8.2 script: target/work/plugins/mongodb-morphia-0.8.2/scripts/_Install.groovy

martofeld avatar Nov 29 '15 18:11 martofeld

This plugin is no longer maintained. Please try the official MongoDB plugin: https://grails.org/plugin/mongodb

If you still want to use Morphia, i suggest to checkout this project and update the import packages according to the new structure (org.mongodb.morphia). Maybe you will need to update to new Grails apis but overall it should not give a lot of hassle

jkuehn avatar Nov 29 '15 19:11 jkuehn