Create Java project with Maven archetype modular-webapp

The GWT WebAppCreator's sample (using GWT-RPC), modularized.

Create a Java Project by archetype modular-webapp with Command Line:

mvn archetype:generate   -DgroupId="com.mycompany.app"   -DartifactId="my-app-id"   -Dmodule="My-module"   -Dmodule-short-name="My-module-short-name"   -DarchetypeGroupId="net.ltgt.gwt.archetypes"   -DarchetypeArtifactId="modular-webapp"   -DarchetypeVersion="2018.1.15"   -DinteractiveMode=false 

Required parameters for generate java project:

module
validationRegex: none
module-short-name
validationRegex: none

Generated Project modules

  • ${rootArtifactId}-client
  • ${rootArtifactId}-shared
  • ${rootArtifactId}-server

Details about maven archetype modular-webapp

GroupId

GroupId

net.ltgt.gwt.archetypes
ArtifactId

ArtifactId

modular-webapp
Version

Version

2018.1.15
Type

Type

maven-archetype

How to add to project

mvn archetype:generate -DgroupId=<com.mycompany.app> -DartifactId=<my-app>  -DarchetypeGroupId=net.ltgt.gwt.archetypes -DarchetypeArtifactId=modular-webapp -DarchetypeVersion=2018.1.15 -DinteractiveMode=false