开发者

GWT Maven Plugin recompiles every time

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>
[...]


Have you read this ? There are some useful options, like gwt.compiler.skip, and some others

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜