The GWT-Maven Archetype - maven-googlewebtoolkit2-archetype, creates a bare bones GWT app with all the GWT-Maven setup and structure in place (a template).
mvn archetype:create -DarchetypeGroupId=com.totsp.gwt \
-DarchetypeArtifactId=maven-googlewebtoolkit2-archetype \
-DarchetypeVersion=1.0.4 \
-DremoteRepositories=http://gwt-maven.googlecode.com/svn/trunk/mavenrepo \
-DgroupId=myGroupId \
-DartifactId=myArtifactId
Download the maven-googlewebtoolkit2-archetype-1.0.4.jar file from:
Then install it into your local repository:
mvn install:install-file \ -DgroupId=com.totsp.gwt \ -DartifactId=maven-googlewebtoolkit2-archetype \ -Dversion=1.0.4 \ -Dpackaging=jar -Dfile=PATH_TO_JAR_YOU_DOWNLOADED/maven-googlewebtoolkit2-archetype-1.0.4.jar
Once you have access to the archetype, you use it as you would any other Maven archetype to create a template/stub project.
mvn archetype:create \ -DarchetypeGroupId=com.totsp.gwt \ -DarchetypeArtifactId=maven-googlewebtoolkit2-archetype \ -DarchetypeVersion=1.0.4 \ -DgroupId=myGroupId \ -DartifactId=myArtifactId