logo Maven 2 Plugin for the Google Web Toolkit

homepage: code.google.com/p/gwt-maven
fresh index:
last release: 10 years ago, first release: 1 decade ago
packaging: maven-plugin
get this artifact from: nuxeo





This chart shows how much is this artifact used as a dependency in other Maven artifacts in Central repository and GitHub:


select version:

Add this snippet into pom.xml inside tag <project><build><plugins>:




Switch to artifact.
goals:
gwt:debug

Extends the gwt goal and runs the project in the GWTShell with a debugger port hook (optionally suspended).

gwt:writeAllScripts

Simply writes out all the scripts to the target folder.

gwt:gwt

Runs the the project in the GWTShell for development. Note that this goal is intended to be explicitly run from the command line (execute phase=), whereas other GWT-Maven goals are not (others happen as part of the standard Maven life-cycle phases: "compile" "test" "install").

gwt:mergewebxml (phase: process-resources)

Merges GWT servlet elements into deployment descriptor (and non GWT servlets into shell).

gwt:validate (phase: validate)

Validates the GWT source but does not compile.

gwt:compile (phase: process-classes)

Invokes the GWTCompiler for the project source.

gwt:test (phase: test)

Runs special (non surefire) test phase for GWTTestCase derived tests. This is necessary because of several complications with regard to surefire and the classpath for GWTTestCase/JUnitShell. See further notes in source.

gwt:i18n (phase: process-resources)

Creates I18N interfaces for constants and messages files.

gwt:generateClientBeans

Generates client beans for the project (currently unsupported).

Often used code snippets:

<plugin>
  <groupId>com.totsp.gwt</groupId>
  <artifactId>maven-googlewebtoolkit2-plugin</artifactId>
  <version>2.0-RC1</version>
  <configuration>
    <gwtVersion>${gwt.version}</gwtVersion>
    <logLevel>INFO</logLevel>
    <compileTargets>
      <value>org.mobicents.slee.container.management.console.ManagementConsole</value>
    </compileTargets>
    <runTarget>org.mobicents.slee.container.management.console.ManagementConsole/ManagementConsole.html</runTarget>
    <generatorRootClasses>
      <value>org.mobicents.slee.container.management.console.ManagementConsole</value>
    </generatorRootClasses>
    <overwriteGeneratedClasses>true</overwriteGeneratedClasses>
    <noServer>false</noServer>
    <extraJvmArgs>-Xmx1024m</extraJvmArgs>
  </configuration>
  <executions>
    <execution>
      <goals>
        <goal>mergewebxml</goal>
        <goal>compile</goal>
        <goal>gwt</goal>
      </goals>
    </execution>
  </executions>
</plugin>

© Jiri Pinkas 2015 - 2018. All rights reserved. Admin login To submit bugs / feature requests please use this github page
related: JavaVids | Top Java Blogs | Java školení | 4npm - npm search | monitored using: sitemonitoring
Apache and Apache Maven are trademarks of the Apache Software Foundation. The Central Repository is a service mark of Sonatype, Inc.