是否可以 运行 并在超级开发模式下调试 GWT-Maven 项目?

Is it possible to run and debug a GWT-Maven project in Super Dev Mode?

我有一个核心思想maven,我想在GWT中支持maven,所以我使用GWT和[=13=创建了一个项目].目前 运行 这个我必须 install 它和 manually deployed 它在 tomcat 服务器上。这真的是一个需要时间的过程。

是否可以使用 super dev mode run 这个 Gwt-Maven 项目?

我的FishingEntry.gwt.xml

 <module rename-to='WeeklyFishingInit'>

  <inherits name="ae.ead.fishing.common.FishingCommon"/>
  <entry-point class="ae.ead.fishing.init.client.FishingEntry"/>

  <source path="client" />
  <source path="shared" />
</module>

并且pom.xml是

<plugins>
    <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <version>${gwt.maven.plugin.version}</version>
        <configuration>
                <encoding>UTF-8</encoding>
                <skip>false</skip>
                <!-- disableCastChecking>true</disableCastChecking -->
                <!-- disableClassMetadata>true</disableClassMetadata --> 
                <!-- draftCompile>true</draftCompile -->
                <!-- style>PRETTY</style-->
                <soyc>false</soyc>
                <optimizationLevel>0</optimizationLevel>
                <compileReport>false</compileReport>
                <!-- extraParam>true</extraParam -->
                <runTarget>FishingEntry.html</runTarget>
                <hostedWebapp>${webappDirectory}</hostedWebapp>
            </configuration>


    </plugin>

我的项目结构是

错误是

我的目标文件夹是

当然,这就是我们 运行 GWT-Spring-Maven 项目的方式。添加到您的 pom.xml gwt-maven-plugin 插件 (link),如下所示:

pom.xml

<plugins>
<!-- rest of your plugins here -->
    <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <configuration>
            <runTarget>com.example.Application/Application.html</runTarget>
            <!--<extraJvmArgs>-Xmx6G</extraJvmArgs>-->
            <!--<localWorkers>1</localWorkers>-->
            <hostedWebapp>${project.build.directory}/${project.build.finalName}</hostedWebapp>
            <bindAddress>0.0.0.0</bindAddress>
            <i18nMessagesBundle>com.example.client.ApplicationMessages</i18nMessagesBundle>
            <generateDirectory>${project.basedir}/src/main/java</generateDirectory>
            <debugSuspend>false</debugSuspend>
            <deploy>${project.build.outputDirectory}</deploy>
        </configuration>
        <executions>
            <execution>
                <goals>
                    <goal>compile</goal>
                </goals>
            </execution>
        </executions>
    </plugin>
</plugins>

根据需要进行任何配置,然后 运行 使用:

mvn gwt:runmvn gwt:debug

我是这样设置超级开发模式的。

  1. 将配置中的launcherDir设置为war输出路径,target/webapp文件夹。
  2. 然后运行,gwt:run-codeserver