Andrey Minogin
Andrey Minogin

Reputation: 4616

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?

Upvotes: 10

Views: 6655

Answers (2)

javagirl
javagirl

Reputation: 1675

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

Upvotes: 0

Stéphane B.
Stéphane B.

Reputation: 3280

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

Upvotes: 16

Related Questions