GWT Maven Plugin每次都会重新编译 [英] GWT Maven Plugin recompiles every time
问题描述
我为我的GWT项目使用了GWT Maven插件。问题是如果任何类改变了,即使它是一个服务器类GWT Maven Plugin在运行 mvn package
时重新编译所有的GWT代码。
这个插件如何确定需要重新编译?我怎样才能让它变得更聪明?
有两种解决方案:
1st)将 gwt.compiler.skip = true 添加到您的Maven命令行中
mvn -Dgwt.compiler.skip = true包
第2条)评论编译目标 gwt-maven-plugin插件在你的pom.xml文件中
[...]
< plugin> ;
< groupId> org.codehaus.mojo< / groupId>
< artifactId> gwt-maven-plugin< / artifactId>
[...]
<执行次数>
<执行>
<配置>
[...]
< / configuration>
<目标>
<! -
< goal>编译< / goal>
- >
< /目标>
< /执行>
< /执行次数>
< / plugin>
[...]
I use GWT Maven Plugin for my GWT project. The problem is that if any class was changed even if it was a server class GWT Maven Plugin recompiles all the GWT code upon running mvn package
.
How does this plugin determines that recompilation is needed? How could I make it more smart?
There are two solutions :
1st) Add gwt.compiler.skip=true to your Maven command line
mvn -Dgwt.compiler.skip=true package
2nd) Comment the compile goal of gwt-maven-plugin plugin in your pom.xml file
[...]
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
[...]
<executions>
<execution>
<configuration>
[...]
</configuration>
<goals>
<!--
<goal>compile</goal>
-->
</goals>
</execution>
</executions>
</plugin>
[...]
这篇关于GWT Maven Plugin每次都会重新编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!