【问题标题】:Error loading UrlMappingsPlugin in Grails在 Grails 中加载 UrlMappingsPlugin 时出错
【发布时间】:2014-11-16 11:58:57
【问题描述】:

在创建基本 grails 插件并使用 Maven 编译时,我收到以下错误消息:

加载插件管理器时出错:无法创建类的新实例 [org.codehaus.groovy.grails.plugins.web.mapping.UrlMappingsGrailsPlugin]! (使用 --stacktrace 查看完整的跟踪信息)

Grails 2.4.3 版

【问题讨论】:

    标签: grails groovy grails-plugin


    【解决方案1】:

    这个问题的解决方法是添加tomcat插件(不知道为什么):

    将此添加到 BuildConfig.groovy:

        build ":tomcat:7.0.55"
    

    那么您可能需要使用grails create-pom 重新生成 pom.xml 文件。

    这似乎与this bug有关。

    【讨论】:

      猜你喜欢
      • 2010-12-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-06
      • 2015-08-17
      • 2018-04-21
      • 1970-01-01
      相关资源
      最近更新 更多