Fork me on GitHub

Plugin Documentation

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 super subfolder.

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 super subfolder.

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.

META-INF/gwt/mainModule files from the project dependencies (not transitive) are used to generate <inherits/> directives. Those directives are inserted at the very beginning of the generated module (notably, they'll appear before any existing <inherits/> directive in the module template).

If moduleShortName is specified (and not empty), it overwrites any existing rename-to from the module template.

Unless the module template contains a source folder (either <source/> or <super-source/>, those three lines will be inserted at the very end of the generated module (this is to keep any includes or excludes or specific path from the module template):


<source path="client"/>
<source path="shared"/>
<super-source path="super"/>

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 7
Memory No minimum requirement.
Disk Space No minimum requirement.

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.0.1</version>
        </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>
        <version>1.0.1</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"