This plugin aims at making it easier to build GWT projects with Maven, by providing two specific packagings:
Add the plugin to your POM and enable extensions:
<plugin> <groupId>net.ltgt.gwt.maven</groupId> <artifactId>gwt-maven-plugin</artifactId> <version>…</version> <extensions>true</extensions> </plugin>
configure your module name in the plugin:
<configuration> <moduleName>com.example.app.App</moduleName> </configuration>
Manage your module in a
Adds all source roots are resources so they're packaged within the generated JAR.
src/main/superfor super-sources and possibly relocate them within your module's package with
<inherits>from Maven dependencies: the
META-INF/gwt/mainModulefiles in the projects direct dependencies and merges them with an (optional)
META-INF/gwt/mainModulefiles are generated by the
Imports sources dependencies: dependencies with a
<type>java-source</type>are unpacked and added as resources. When building a GWT adapter for a shared library, this allows the library sources to be packaged within the GWT adapter lib, along with the GWT-specific sources, super-sources and GWT module.
gwt-appgenerates a WAR that can be directly used as overlays in a downstream module with a
The plugin documentation is published at https://tbroyer.github.io/gwt-maven-plugin/
You can also look at the integration tests,