Last active
December 12, 2015 02:58
-
-
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 …
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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