我创建了一个新的Grails2.4项目,删除了hibernate和数据库迁移插件,添加了最新的spring安全性和mongo插件,当我运行grails compile时,我得到了以下错误
| Error Fatal error during compilation java.lang.NoClassDefFoundError: net/sf/ehcache/config/CacheConfiguration (Use --stacktrace to see the full trace)
如果我删除了spring安全插件,它会编译,如果我删除了mongoDB插件并使用security和hibernate,那么它仍然只能工作-- spring安全性和solo mongoDB插件的结合给出了上述错误。
知道吗?
发布于 2014-06-11 13:37:50
看起来spring安全性依赖于ehcache,但不声明为ehcache。根据ehcache的不同,cache插件也有类似的问题。将其添加到您的dependencies部分的BuildConfig:
compile "net.sf.ehcache:ehcache-core:2.4.8"https://stackoverflow.com/questions/24164351
复制相似问题