logo Mojo's Maven Plugin for GWT

homepage:
fresh index:
last release: 2 years ago, first release: 1 decade ago
packaging: maven-plugin
get this artifact from: smartics central nuxeo
see this artifact on: search.maven.org


Display vulnerabilities (snyk): Vulnerability check

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:clean

Cleanup the webapp directory for GWT module compilation output

gwt:compile (phase: prepare-package)

Invokes the GWT Compiler for the project source. See compiler options : http://www.gwtproject.org/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideCompilerOptions

gwt:compile-report

see http://code.google.com/webtoolkit/doc/latest/DevGuideCompileReport.html#Usage

gwt:css (phase: generate-sources)

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

Runs the project with a debugger port hook (optionally suspended).

gwt:eclipse

Goal which creates Eclipse lauch configurations for GWT modules.

gwt:eclipseTest

Goal which creates Eclipse lauch configurations for GWTTestCases.

gwt:generateAsync (phase: generate-sources)

Goal which generate Async interface.

gwt:help

Display help information on gwt-maven-plugin. Call mvn gwt:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.

gwt:i18n (phase: generate-sources)

Creates I18N interfaces for constants and messages files.

gwt:mergewebxml (phase: process-resources)

Merges GWT servlet elements into deployment descriptor (and non GWT servlets into shell). If you use {@link #scanRemoteServiceRelativePathAnnotation} you must bind this mojo to at least compile phase Because the classpath scanner need to see compile classes

gwt:resources (phase: process-resources)

Copy 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:run

Runs the project in the GWT (Classic or Super) Dev Mode for development.

gwt:run-codeserver

Runs GWT modules with Super Dev Mode.

gwt:source-jar (phase: package)

Add GWT java source code and module descriptor as resources to project jar. Alternative to gwt:resources for better Eclipse projects synchronization.

gwt:test (phase: integration-test)

Mimic surefire to run GWTTestCases during integration-test phase, until SUREFIRE-508 is fixed

Often used code snippets:

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>gwt-maven-plugin</artifactId>
  <configuration>
    <includes>org/xwiki/gwt/dom/DOMTestSuite.java</includes>
  </configuration>
</plugin>
<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>gwt-maven-plugin</artifactId>
  <configuration>
    <includes>org/xwiki/gwt/user/UserTestSuite.java</includes>
  </configuration>
</plugin>
<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>gwt-maven-plugin</artifactId>
  <configuration>
    <includes>org/xwiki/gwt/wysiwyg/PluginTestSuite.java</includes>
  </configuration>
</plugin>
<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>gwt-maven-plugin</artifactId>
  <configuration>
    <includes>org/xwiki/gwt/wysiwyg/WysiwygTestSuite.java</includes>
  </configuration>
</plugin>
<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>gwt-maven-plugin</artifactId>
  <version>${gwt.plugin.version}</version>
  <executions>
    <execution>
      <id>gwt-compile</id>
      <goals>
        <goal>compile</goal>
      </goals>
      <configuration>
        <module>org.spf4j.ForceSpf4jCompilation</module>
        <failOnError>true</failOnError>
        <logLevel>${gwt.logLevel}</logLevel>
        <validateOnly>true</validateOnly>
        <sourceLevel>1.8</sourceLevel>
      </configuration>
    </execution>
  </executions>
</plugin>

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