gpt4 book ai didi

grails升级2.4.0导致错误编译错误: startup failed

转载 作者:行者123 更新时间:2023-12-02 04:22:43 28 4
gpt4 key购买 nike

我正在尝试从 Grails 2.2.3 升级到 Grails 2.4.0。为此,我遵循了以下步骤:

  1. 使用 GVM,我安装了 grails 2.4.0
  2. 将 grails 默认版本设置为 2.4.0
  3. 然后在我的项目目录中运行命令将 grails-version 设置为 2.4.0和然后更新java以使用oracle jdk 7

我收到以下错误。有什么建议吗?

Error Compilation error: startup failed:
/home/madan/.grails/2.4.0/projects/mainthub/plugins/mail-1.0/src/groovy/grails/plugin/mail/MailMessageContentRenderer.groovy: 21: unable to resolve class org.codehaus.groovy.grails.plugins.PluginManagerHolder
@ line 21, column 1.
import org.codehaus.groovy.grails.plugins.PluginManagerHolder
^

/home/madan/.grails/2.4.0/projects/mainthub/plugins/resources-1.2/grails-app/taglib/org/grails/plugin/resource/ResourceTagLib.groovy: 6: unable to resolve class org.codehaus.groovy.grails.commons.ConfigurationHolder
@ line 6, column 1.
import org.codehaus.groovy.grails.commons.ConfigurationHolder
^

/home/madan/.grails/2.4.0/projects/mainthub/plugins/resources-1.2/src/groovy/org/grails/plugin/resource/ResourceProcessor.groovy: 6: unable to resolve class org.codehaus.groovy.grails.plugins.PluginManagerHolder
@ line 6, column 1.
import org.codehaus.groovy.grails.plugins.PluginManagerHolder
^

/home/madan/.grails/2.4.0/projects/mainthub/plugins/resources-1.2/src/groovy/org/grails/plugin/resource/util/HalfBakedLegacyLinkGenerator.groovy: 3: unable to resolve class org.codehaus.groovy.grails.commons.ConfigurationHolder
@ line 3, column 1.
import org.codehaus.groovy.grails.commons.ConfigurationHolder
^

/home/madan/.grails/2.4.0/projects/mainthub/plugins/joda-time-1.4/grails-app/taglib/grails/plugin/jodatime/taglib/PeriodTagLib.groovy: 18: unable to resolve class org.codehaus.groovy.grails.commons.ConfigurationHolder
@ line 18, column 1.
import org.codehaus.groovy.grails.commons.ConfigurationHolder
^

/home/madan/.grails/2.4.0/projects/mainthub/plugins/email-confirmation-2.0.8/grails-app/services/com/grailsrocks/emailconfirmation/EmailConfirmationService.groovy: 24: unable to resolve class org.codehaus.groovy.grails.commons.ConfigurationHolder
@ line 24, column 1.
import org.codehaus.groovy.grails.commons.ConfigurationHolder
^

/home/madan/.grails/2.4.0/projects/mainthub/plugins/email-confirmation-2.0.8/grails-app/services/com/grailsrocks/emailconfirmation/EmailConfirmationService.groovy: 25: unable to resolve class org.codehaus.groovy.grails.commons.ApplicationHolder
@ line 25, column 1.
import org.codehaus.groovy.grails.commons.ApplicationHolder
^

/home/madan/.grails/2.4.0/projects/mainthub/plugins/quartz-1.0-RC2/grails-app/conf/QuartzBootStrap.groovy: 18: unable to resolve class org.codehaus.groovy.grails.commons.ConfigurationHolder
@ line 18, column 1.
import org.codehaus.groovy.grails.commons.ConfigurationHolder
^

/home/madan/.grails/2.4.0/projects/mainthub/plugins/quartz-1.0-RC2/grails-app/conf/QuartzBootStrap.groovy: 31: unable to resolve class org.codehaus.groovy.grails.commons.ConfigurationHolder
@ line 31, column 12.
if(ConfigurationHolder.config?.quartz?.autoStartup) quartzScheduler.start()
^

/home/madan/.grails/2.4.0/projects/mainthub/plugins/joda-time-1.4/src/groovy/grails/plugin/jodatime/binding/DateTimeEditor.groovy: 20: unable to resolve class org.codehaus.groovy.grails.commons.ConfigurationHolder
@ line 20, column 1.
import org.codehaus.groovy.grails.commons.ConfigurationHolder
^

/home/madan/.grails/2.4.0/projects/mainthub/plugins/joda-time-1.4/src/groovy/grails/plugin/jodatime/binding/DateTimeEditor.groovy: 30: unable to resolve class org.codehaus.groovy.grails.commons.ConfigurationHolder
@ line 30, column 38.
@Lazy private ConfigObject config = ConfigurationHolder.config?.jodatime?.format
^

11 errors

最佳答案

持有者类别have been removed从 Grails 2.4.0 开始。更新到最新的插件版本应该可以解决上述编译错误。

如果您发现最新的插件版本不支持 Grails 2.4.0,那么您只需等到他们发布兼容 2.4.0 的版本即可升级。

根据个人经验,我知道以下插件有2.4.0兼容版本:

  • 资源
  • 邮件
  • quartz

但我不确定电子邮件确认或乔达时间

关于grails升级2.4.0导致错误编译错误: startup failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23915441/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com