Skip to content

Instantly share code, notes, and snippets.

@twillouer
Created May 22, 2014 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twillouer/73e1452ad59b1e7c55f4 to your computer and use it in GitHub Desktop.
Save twillouer/73e1452ad59b1e7c55f4 to your computer and use it in GitHub Desktop.
Reduce GWT compile time
<properties>
<isDraftCompile>false</isDraftCompile>
</properties>
[...]
<!-- GWT Maven Plugin -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwtVersion}</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test</goal>
</goals>
</execution>
</executions>
<!-- Plugin configuration. There are many available options, see gwt-maven-plugin
documentation at codehaus.org -->
<configuration>
<draftCompile>${isDraftCompile}</draftCompile>
</configuration>
</plugin>
[...]
<profiles>
<profile>
<id>dev</id>
<properties>
<isDraftCompile>true</isDraftCompile>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>maven-replacer-plugin</artifactId>
<version>1.3.7</version>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<includes>
<include>target/**/*.gwt.xml</include>
</includes>
<regex>true</regex>
<token><![CDATA[</module>]]></token>
<value><![CDATA[<collapse-all-properties /></module>]]></value>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment