使用新的“module.gwt.xml”文件引用 gwt 模块

Referring to gwt module with new `module.gwt.xml` file

https://github.com/tbroyer/gwt-maven-archetypes 中为 gwt 使用新的 maven 原型我发现 gwt 模块 .gwt.xml 文件可以留在 外部 java 文件夹在标准的 Maven 层次结构中。然而,该示例仅将此结构用于主机页面直接使用的包。

我想知道是否有办法通过 if <inherits/> 子句从另一个 gwt 模块重用这样的模块。如果是这样,那将是什么方式。即从 <inherits/> 子句引用该模块时必须使用什么名称。

我需要继承的模块

    ./pom.xml
    ./src/main/java/com/mycompany/myapp/mymodule/MyComponent.java
    ./src/main/module.gwt.xml

主模块

    ./pom.xml
    ./src/main/java/com/mycompany/myapp/AppEntryPoint.java
    ./src/main/module.gwt.xml

插件配置中指定的模块名称 (https://git.io/vMEzd), anyways, if the dependency is a gwt-lib package and the dependant module is a gwt-app package, the maven plugin automatically add the inherit line. This example (https://git.io/vMEgt) 取决于在最终 gwt.xml 模块中自动添加的共享库。