在我将项目从 2.3.7 -> 2.4.0 升级后不久,我正在将项目从 grails 2.4.0 升级到 2.5.4,我收到此错误。
[groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
[groovyc] Compile error during compilation with javac.
[groovyc] /home/michal/Desktop/ikariera/ikariera/target/work/plugins/cache-1.1.7/src/java/grails/plugin/cache/GrailsAnnotationCacheOperationSource.java:220: error: no suitable method found for parseCacheAnnotations(AnnotatedElement)
[groovyc] Collection<CacheOperation> annOps = annotationParser.parseCacheAnnotations(ae);
[groovyc] ^
[groovyc] method CacheAnnotationParser.parseCacheAnnotations(Class<?>) is not applicable
[groovyc] (argument mismatch; AnnotatedElement cannot be converted to Class<?>)
[groovyc] method CacheAnnotationParser.parseCacheAnnotations(Method) is not applicable
[groovyc] (argument mismatch; AnnotatedElement cannot be converted to Method)
[groovyc] Note: /home/michal/Desktop/ikariera/ikariera/target/work/plugins/scaffolding-2.1.0/src/java/org/codehaus/groovy/grails/scaffolding/AbstractGrailsTemplateGenerator.java uses or overrides a deprecated API.
[groovyc] Note: Recompile with -Xlint:deprecation for details.
[groovyc] 1 error
[groovyc]
[groovyc]
| Compiling 232 source files.
| Error Compilation error: startup failed:
Compile error during compilation with javac.
/home/michal/Desktop/ikariera/ikariera/target/work/plugins/cache-1.1.7/src/java/grails/plugin/cache/GrailsAnnotationCacheOperationSource.java:220: error: no suitable method found for parseCacheAnnotations(AnnotatedElement)
Collection<CacheOperation> annOps = annotationParser.parseCacheAnnotations(ae);
^
method CacheAnnotationParser.parseCacheAnnotations(Class<?>) is not applicable
(argument mismatch; AnnotatedElement cannot be converted to Class<?>)
method CacheAnnotationParser.parseCacheAnnotations(Method) is not applicable
(argument mismatch; AnnotatedElement cannot be converted to Method)
我尝试将 chache 插件从 1.1.3 升级到 1.1。{4,5,6,7,8} 但一切都给出了相同的错误。我会很高兴有一个想法,问题可能出在哪里。