Skip to content

Instantly share code, notes, and snippets.

@niloc132
Last active December 12, 2015 02:58
Show Gist options
  • Save niloc132/4702659 to your computer and use it in GitHub Desktop.
Save niloc132/4702659 to your computer and use it in GitHub Desktop.
Run GWT compiler from maven without any gwt-m-p restrictions. This can be useful for two main reasons: * Running the compiler during test (i.e. switch phase to process-test-classes, and set classpathScope to test) to allow the test phase to have compiled JS to work on * Running without skipping built-in entrypoints to completely verify that the …
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<id>compile-js</id>
<phase>prepare-package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath />
<argument>com.google.gwt.dev.Compiler</argument>
<argument>-war</argument>
<argument>${project.build.directory}/www</argument>
<argument>org.project.my.Module</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment