使用 tbroyers gwt-maven-plugin 刷新时未检测到更改

Not detecting changes upon refresh using tbroyers gwt-maven-plugin

我当前的设置存在问题,无法在刷新页面时检测到更改。如果我使用书签手动触发编译,它会起作用,但我不喜欢每次进行更改时都必须这样做。

这是我当前的设置:

整个 pom.xml 可以在这里找到:https://gist.github.com/BenDol/75c9299b20cb285a8f57a89aa00bf28e

父级 pom.xml:https://gist.github.com/BenDol/6524ad17de7977f54a496a93a26aabf0

gwt-maven-插件设置:

<plugin>
  <groupId>net.ltgt.gwt.maven</groupId>
  <artifactId>gwt-maven-plugin</artifactId>
  <version>${gwt-maven-plugin.version}</version>
  <extensions>true</extensions>
  <configuration>
    <moduleName>com.insclix.mvc.App</moduleName>
    <style>OBFUSCATED</style>
    <logLevel>INFO</logLevel>
    <sourceLevel>${java.version}</sourceLevel>
    <jvmArgs>
      <jvmArg>${argLine}</jvmArg>
      <jvmArg>-Xmx1g</jvmArg>
      <jvmArg>-Xms1g</jvmArg>
      <jvmArg>-XX:CompileThreshold=7000</jvmArg>
      <jvmArg>-Derrai.dev.context=${errai.dev.context}</jvmArg>
      <jvmArg>-Derrai.client.local.class.pattern=${errai.client.class.pattern}</jvmArg>
      <jvmArg>${profileLine}</jvmArg>
    </jvmArgs>
    <optimize>9</optimize>
    <compilerArgs>
      <arg>-compileReport</arg>
      <arg>-XcompilerMetrics</arg>
    </compilerArgs>
    <warDir>${webappDirectory}</warDir>
    <webappDirectory>${webappDirectory}</webappDirectory>
    <classpathScope>compile+runtime</classpathScope>
    <failOnError>true</failOnError>
  </configuration>
  <executions>
    <execution>
      <goals>
        <goal>compile</goal>
        <goal>test</goal>
      </goals>
    </execution>
  </executions>
</plugin>

如果有人有任何建议可以帮助我解决这个问题,将不胜感激。感谢您花时间阅读这篇 post.

此致, 本

您需要设置 launcherDir 以获得加载时编译。

你似乎混合了 Mojo 插件和我的插件的配置,你应该清理一下并重新阅读文档以对它们进行分类。