Plugin Documentation
This report describes goals, parameters details, requirements and sample usage of this plugin.
Goals
Goals available for this plugin:
| Goal | Description |
|---|---|
| gwt:add-super-sources | Add super-source directory to project resources.
The super-source directory contains emulated classes for GWT. Super-sources in GWT need to be in a subdirectory of the GWT module, and you can automatically relocate the super-source content within a |
| gwt:add-test-super-sources | Add super-source directory to project test resources.
The super-source directory contains emulated classes for GWT. Super-sources in GWT need to be in a subdirectory of the GWT module, and you can automatically relocate the super-source content within a |
| gwt:codeserver | Runs GWT's CodeServer (SuperDevMode). |
| gwt:compile | Invokes the GWT Compiler on the project's sources and resources. |
| gwt:devmode | Runs GWT's DevMode. |
| gwt:enforce-encoding | Enforces that the source encoding is UTF-8. |
| gwt:generate-module | Generates a GWT module definition from Maven dependencies, or merge <inherits/> with a module template.
When no module template exist, the behavior is identical to using an empty file.
If Unless the module template contains a source folder (either |
| gwt:generate-module-metadata | Generates the META-INF/gwt/mainModule file used by gwt:generate-module in downstream projects. |
| gwt:help | Display help information on gwt-maven-plugin.
Call mvn gwt:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. |
| gwt:package-app | Package the compiled GWT application into a WAR-like archive. |
| gwt:package-lib | Package the compiled GWT library into a JAR archive. |
| gwt:test | Runs the project's tests with the specific setup needed for GWTTestCase tests.
Please note that some documentation is inherited from Surefire and cannot be changed, so versions (mainly) and other bits of documentation might be wrong or irrelevant. |
System Requirements
The following specifies the minimum requirements to run this Maven plugin:
| Maven | 3.3.1 |
| JDK | 1.8 |
System Requirements History
The following specifies the minimum requirements to run this Maven plugin for historical versions:
| Plugin Version | Maven | JDK |
|---|---|---|
| from 1.1.0 to 1.2.0 | 3.3.1 | 8 |
| from 1.0.0 to 1.0.1 | 3.3.1 | 7 |
| from 1.0-rc-9 to 1.0-rc-10 | 3.0 | 7 |
| from 1.0-rc-1 to 1.0-rc-8 | 3 | 7 |
| from 1.0-beta-1 to 1.0-beta-2 | - | 7 |
| from 1.0-alpha-1 to 1.0-alpha-3 | - | 6 |
Usage
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>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.2.0</version>
<extensions>true</extensions>
</plugin>
...
</plugins>
</pluginManagement>
<!-- To use the plugin goals in your POM or parent POM -->
<plugins>
<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
</plugin>
...
</plugins>
</build>
...
</project>
For more information, see "Guide to Configuring Plug-ins"
