by tbroyer

132 Stars 35 Forks Last release: Not found Apache License 2.0 195 Commits 19 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


This project contains Maven archetypes for modular GWT projects.

How to use

Generate a project

mvn archetype:generate \
   -DarchetypeGroupId=net.ltgt.gwt.archetypes \
   -DarchetypeVersion=LATEST \

where the available


  • modular-webapp
  • modular-requestfactory
  • dagger-guice-rf-activities

This should use the latest release from the Central Repository. Alternatively, and/or if you want to hack on / contribute to the archetypes, you can clone and install the project locally:

git clone
cd gwt-maven-archetypes && mvn clean install

You'll then use the

mvn archetype:generate
command from above, except for the
argument which you'll replace with

Start the development mode

Change directory to your generated project and issue the following commands:

  1. In one terminal window:
    mvn gwt:codeserver -pl *-client -am
  2. In another terminal window:
    mvn jetty:run -pl *-server -am -Denv=dev

Or if you'd rather use Tomcat than Jetty, use

mvn tomcat7:run
instead of
mvn jetty:run

Note that the

are not strictly necessary, they just tell Maven not to build the client module when you're dealing with the server one, and vice versa.


There's a special profile defined in the POM file of server modules:

, which is used only when developping. It configures the Jetty and Tomcat plugins and removes the dependency on the client module (declared in the
profile, active by default.)

To activate the

profile you can provide the
system property, or use


To use variable interpolation in parameters during

mvn archetype:generate
, you need at least version 2.2 of the maven-archetype-plugin. Archetypes use
as the default value for the
parameter, so if you don't use version 2.2 or above of the maven-archetype-plugin, make sure you provide a value and do not use the default one for that parameter. You can also make sure you use version 2.2 of the plugin by using
instead of
. It should be noted that variable interpolation also does not work in M2Eclipse's wizard, despite using recent versions of Maven thus (probably) a recent-enough version of the maven-archetype-plugin.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.