Plugin Documentation

Goals available for this plugin:

GoalReport?Description
gwt:browserNoNo description.
gwt:cleanNoCleanup the webapp directory for GWT module compilation output
gwt:compileNoInvokes the GWTCompiler for the project source. See compiler options : http://code.google.com/intl/fr-FR/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideCompilerOptions
gwt:compile-reportYessee http://code.google.com/webtoolkit/doc/latest/DevGuideCompileReport.html#Usage
gwt:cssNoCreates 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:debugNoExtends the gwt goal and runs the project in the GWT Hosted mode with a debugger port hook (optionally suspended).
gwt:eclipseNoGoal which creates Eclipse lauch configurations for GWT modules.
gwt:eclipseTestNoDeprecated. use google eclipse plugin http://code.google.com/intl/fr-FR/eclipse/docs/users_guide.html
gwt:generateAsyncNoGoal which generate Asyn interface.
gwt:helpNoDisplay help information on gwt-maven-plugin.
Call
  mvn gwt:help -Ddetail=true -Dgoal=<goal-name>
to display parameter details.
gwt:i18nNoCreates I18N interfaces for constants and messages files.
gwt:mergewebxmlNoMerges GWT servlet elements into deployment descriptor (and non GWT servlets into shell).

If you use scanRemoteServiceRelativePathAnnotation you must bind this mojo to at least compile phase Because the classpath scanner need to see compile classes

gwt:resourcesNoCopy GWT java source code and module descriptor as resources in the build outputDirectory. Alternative to declaring a <resource> in the POM with finer filtering as the module descriptor is read to detect sources to be copied.
gwt:runNoGoal which run a GWT module in the GWT Hosted mode.
gwt:run-codeserverNoEXPERIMENTAL: Runs GWT modules with Super Dev Mode.
gwt:source-jarNoAdd GWT java source code and module descriptor as resources to project jar. Alternative to gwt:resources for better Eclipse projects synchronization.
gwt:soycYesDeprecated. You must now use the CompileReport, SoycDashboard is not anymore supported will be removed in 2.1.2
gwt:testNoMimic surefire to run GWTTestCases during integration-test phase, until SUREFIRE-508 is fixed

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven2.1
JDK1.6
MemoryNo minimum requirement.
Disk SpaceNo 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>org.codehaus.mojo</groupId>
          <artifactId>gwt-maven-plugin</artifactId>
          <version>2.6.0</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.6.0</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.6.0</version>
      </plugin>
      ...
    </plugins>
  </reporting>
  ...
</project>

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