Grails ehcache插件中的编译错误

Grails ehcache插件中的编译错误,grails,ehcache,spring-tool-suite,Grails,Ehcache,Spring Tool Suite,刚刚添加到BuildConfig.groovy中: compile ":cache-ehcache:1.0.1" 我正在使用Eclipse/Spring工具套件v3.5.0.RELEASE JAVA\u主页设置为:E:\Program Files\JAVA\jdk1.7.0\u 17 当我运行grails runApp时,会出现以下编译错误 Compilation error: startup failed: Compile error during compilation with

刚刚添加到BuildConfig.groovy中:

    compile ":cache-ehcache:1.0.1"
我正在使用Eclipse/Spring工具套件v3.5.0.RELEASE

JAVA\u主页设置为:E:\Program Files\JAVA\jdk1.7.0\u 17

当我运行grails runApp时,会出现以下编译错误

Compilation error: startup failed:
Compile error during compilation with javac.
C:\Documents and Settings\pagendg\.grails\2.3.8\projects\osrpms\plugins\cache-ehcache-1.0.1\src\java\grails\plugin\cache\ehcache\GrailsEhCacheManagerFactoryBean.java:195: error: ReloadableCacheManager.ProxyEhcache is not abstract and does not override abstract method getSearchesPerSecond() in Ehcache
        protected class ProxyEhcache implements Ehcache {
                  ^
C:\Documents and Settings\pagendg\.grails\2.3.8\projects\osrpms\plugins\cache-ehcache-1.0.1\src\java\grails\plugin\cache\ehcache\GrailsEhCacheManagerFactoryBean.java:798: error: getStatistics() in ReloadableCacheManager.ProxyEhcache cannot implement getStatistics() in Ehcache
            public StatisticsGateway getStatistics()
                                     ^
  return type StatisticsGateway is not compatible with Statistics
C:\Documents and Settings\pagendg\.grails\2.3.8\projects\osrpms\plugins\cache-ehcache-1.0.1\src\java\grails\plugin\cache\ehcache\GrailsEhCacheManagerFactoryBean.java:656: error: cannot find symbol
                return getUnderlyingEhcache(name).getSearchAttributes();
                                                 ^
  symbol:   method getSearchAttributes()
  location: interface Ehcache
C:\Documents and Settings\pagendg\.grails\2.3.8\projects\osrpms\plugins\cache-ehcache-1.0.1\src\java\grails\plugin\cache\ehcache\GrailsEhCacheManagerFactoryBean.java:653: error: method does not override or implement a method from a supertype
            @Override
            ^

尝试删除.grails目录下的项目文件夹,例如~/.grails/2.3.8/projects/osrpms

命令呢

grails clean-all

grails clean

然后运行项目

仍然不走运。如果我改为1.0.0,至少插件会编译,但它会丢失:grails.plugin.cache.ehcache.hibernate.BeanEhcacheRegionFactory4和grails.plugin.cache.ehcache.hibernate.BeanEhcacheRegionFactory4。你有没有设法让它工作?我在Grails 2.3.7和缓存ehcache:1.0.4中遇到了同样的问题……我想最后我去掉了ehcache上的BuildConfig依赖项,GORM最终将缓存模块拉了进来