This project provides a set of archetypes for starting your GWT application.
The available archetypes are:
- gwt-simple: minimal ready to run gwt project with an empty entry point class. It makes use of the
net.ltgt.gwt.maven
maven plugin. To run dev mode:mvn gwt:devmode
. More info on goals and configuration can be found on the plugin's documentation. - gwt-simple-mojo-plugin: same as
gwt-simple
except that it uses theorg.codehaus.mojo
plugin. To run dev mode:mvn package gwt:run
. More info on goals and configuration can be found on the plugin's documentation. - spring-boot-gwt: This archetype is an integration of GWT into a spring boot application. There are two predefined profiles for running GWT dev mode and for running the application in production. To run the spring boot app with GWT in devmode you need to run the following commands:
mvn spring-boot:run
and in a different windowmvn gwt:devmode -Pgwt-dev
. If you don't need to you use GWT devmode and you need to run or package the application you can use the gwt-prod profile. For example:mvn package -Pgwt:prod
. Spring Boot version: 1.5.2.RELEASE, GWT version: 2.8.0. This archetypes uses thenet.ltgt.gwt.maven
GWT plugin.
On Windows:
mvn archetype:generate -DarchetypeGroupId=com.gwidgets.maven ^
-DarchetypeArtifactId={artifactName} ^
-DarchetypeVersion=0.4 ^
-DgroupId={yourGroupId} ^
-DartifactId={yourArtifactID} ^
-Dmodule={moduleName} ^
-Dversion={yourVersion}
On Linux/Mac Os:
mvn archetype:generate -DarchetypeGroupId=com.gwidgets.maven \
-DarchetypeArtifactId={artifactName} \
-DarchetypeVersion=0.4 \
-DgroupId={yourGroupId} \
-DartifactId={yourArtifactID} \
-Dmodule={moduleName} \
-Dversion={yourVersion}