Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GWT Maven Plugin recompiles every time

Tags:

maven

gwt

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?

like image 462
Andrey Minogin Avatar asked Feb 01 '11 12:02

Andrey Minogin


1 Answers

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>
[...]
like image 99
Stéphane B. Avatar answered Nov 13 '22 14:11

Stéphane B.