【问题标题】:Share GWT module between different Grails Plugins在不同的 Grails 插件之间共享 GWT 模块
【发布时间】:2013-01-14 14:22:03
【问题描述】:

我在不同的帖子中看到了如何在不同的项目之间共享 GWT 模块。

例如 How to use source code of one gwt application in to another application

我的案例更具体一点,因为我有 两个 Grails+GWT 插件:projectA 和 projectB。

projectA 包含 src/java 中的 Java bean,它们都用于 Grails 服务以及 src/gwt 代码中。我定义了一个 module.gwt.xml,其中包含我的主模块 (EntryPoint.gwt.xml) 继承的 java bean 的路径。这适用于 projectA。

我已经创建了 projectB,并且我想在 projectB 的 Grails 服务和 src/gwt 代码中使用在 projectA 中声明的 java bean。我设法通过在 projectB 的 BuildConfig.groovy 中添加 grails.plugin.location.'projectA' = 来共享服务的 java bean。但是,当我在 projectB 的主模块 (EntryPoint.gwt.xml) 中添加 a 时,在 projectB 中编译 GWT 模块时出现以下错误。

Loading inherited module '<qualified module name>'
  |    [ERROR] Unable to find '<qualified module name>' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
  | [ERROR] Line 16: Unexpected exception while processing element 'inherits'

知道如何解决这个问题吗?

【问题讨论】:

    标签: gwt grails plugins module share


    【解决方案1】:

    在 BuildConfig.groovy 中添加以下属性解决了我的问题。

    gwt.plugins = ["/插件名称/"]

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-02-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多