Goals available for this plugin:
| Goal | Report? | Description |
|---|---|---|
| gwt:clean | No | Cleanup the webapp directory for GWT module compilation output |
| gwt:compile | No | Invokes the GWT Compiler for the project source. See compiler options : http://www.gwtproject.org/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideCompilerOptions |
| gwt:compile-report | Yes | see http://code.google.com/webtoolkit/doc/latest/DevGuideCompileReport.html#Usage |
| gwt:css | No | Creates CSS interfaces for css files. Will use the utility tool provided in gwt sdk which create a corresponding Java interface for accessing the classnames used in the file. |
| gwt:debug | No | Runs the project with a debugger port hook (optionally suspended). |
| gwt:eclipse | No | Goal which creates Eclipse lauch configurations for GWT modules. |
| gwt:eclipseTest | No | Deprecated. use google eclipse plugin http://code.google.com/intl/fr-FR/eclipse/docs/users_guide.html |
| gwt:generateAsync | No | Goal which generate Async interface. |
| gwt:help | No | Display help information on gwt-maven-plugin. Call mvn gwt:help -Ddetail=true
-Dgoal=<goal-name> to display parameter details. |
| gwt:i18n | No | Creates I18N interfaces for constants and messages files. |
| gwt:mergewebxml | No | Merges GWT servlet elements into deployment descriptor (and non GWT
servlets into shell).
If you use
|
| gwt:resources | No | Deprecated. use maven-source-plugin and sources classifier dependencies instead |
| gwt:run | No | Runs the project in the GWT (Classic or Super) Dev Mode for development. |
| gwt:run-codeserver | No | Runs GWT modules with Super Dev Mode. |
| gwt:source-jar | No | Deprecated. use maven-source-plugin and sources classifier dependencies instead |
| gwt:test | No | Mimic surefire to run GWTTestCases during integration-test phase, until SUREFIRE-508 is fixed |
The following specifies the minimum requirements to run this Maven plugin:
| Maven | 3 |
| JDK | 1.6 |
| Memory | No minimum requirement. |
| Disk Space | No minimum requirement. |
You should specify the version in your project's plugin configuration:
<project>
...
<build>
<!-- To define the plugin version in your parent POM -->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.8.2-SNAPSHOT</version>
</plugin>
...
</plugins>
</pluginManagement>
<!-- To use the plugin goals in your POM or parent POM -->
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.8.2-SNAPSHOT</version>
</plugin>
...
</plugins>
</build>
...
<!-- To use the report goals in your POM or parent POM -->
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.8.2-SNAPSHOT</version>
</plugin>
...
</plugins>
</reporting>
...
</project>
For more information, see "Guide to Configuring Plug-ins"