我当前的设置存在问题,刷新页面时无法检测到更改。如果我使用书签手动触发编译,它会起作用,但我不喜欢每次进行更改时都必须执行此操作。
这是我当前的设置:
- IntellijIDEA 2017.2.1
- Maven
- Tomcat(使用 IntellijIDEA 运行配置)
- GWT 2.8.2
整个 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>
如果有人有任何建议可以帮助我解决这个问题,我将不胜感激。感谢您花时间阅读这篇文章。
问候, 本
最佳答案
您需要设置launcherDir
获得加载时编译。
您似乎对 Mojo 的插件和我的插件进行了混合配置,您可能应该清理它并重新阅读文档以对它们进行排序。
关于java - 使用 tbroyers gwt-maven-plugin 刷新时未检测到更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47172424/