"Module has no entry points defined",除了它(迁移 gwt-maven-plugin)

"Module has no entry points defined", except it does (migrating the gwt-maven-plugin)

[INFO] [ERROR] Module has no entry points defined

我正在从 org.codehaus.mojo:gwt-maven-plugin 迁移到 net.ltgt.gwt.maven:gwt-maven-plugin,我似乎无法让编译器相信我的模块确实有一个条目点已定义。

旧插件只能与较旧的 Java 一起使用,我已经没有了...所以我转向更新的 GWT Maven 插件...不幸的是这个插件使用参数GWT 2.0.2 编译器无法识别(如 -deploy 或 -sourceLevel)...这迫使我将 ${gwt.version} 更改为 2.8.2。这是相当大的跳跃,但我不明白这如何使像实现 EntryPoint 接口这样简单的事情无效。

TheApp/Web/src/main/module.xml:

    <entry-point class='net.theapp.client.TheEntryPoint' />
...
    <source path='net/theapp/client'/>
    <source path='net/theapp/data'/>

入口点的位置class:

TheApp/Web/src/main/java/net/theapp/client/
  - TheEntryPoint.java

class:

...
public class TheEntryPoint
    implements EntryPoint
{
...

您已将模块文件命名为 module.mxl。正确的名字是 module.gwt.xml