Grails2.4.1和插件joda time 1.5的编译错误

Grails2.4.1和插件joda time 1.5的编译错误,grails,jodatime,Grails,Jodatime,编译grails 2.4.1项目时,我遇到以下错误: [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: [groovyc] /home/omarques/ws1/sigob/target/work/plugins/joda-time-1.5/src/groovy/grails/plugin/jodatime/simpledatastore/SimpleMapJodaT

编译grails 2.4.1项目时,我遇到以下错误:

[groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
[groovyc] /home/omarques/ws1/sigob/target/work/plugins/joda-time-1.5/src/groovy/grails/plugin/jodatime/simpledatastore/SimpleMapJodaTimeMarshaller.groovy: 44: Apparent variable 'MonthDay' was found in a static scope but doesn't refer to a local variable, static field or class. Possible causes:
[groovyc] You attempted to reference a variable in the binding or an instance variable from a static context.
[groovyc] You misspelled a classname or statically imported field. Please check the spelling.
[groovyc] You attempted to use a method 'MonthDay' but left out brackets in a place not allowed by the grammar.
[groovyc]  @ line 44, column 87.
[groovyc]    me, LocalDate, LocalDateTime, MonthDay,
[groovyc]                                  ^ 

我尝试将项目升级到2.4.3,但遇到了相同的错误

将以下内容添加到application.properties并重试


plugins.joda time=1.3.1

通过在BuildConfig中包含对joda-time-2.3的显式依赖项来解决问题,因为另一个依赖项net.objectlab.kit:datecalc joda:1.2.0导致使用与joda time grails插件不兼容的过时版本的joda time

此版本与grails 2.4An不兼容这方面的示例可在以下网址找到: