Создать Java проект на основе Maven архетипа modular-webapp

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

Консольная команда для создания Java-проекта на основе архетипа modular-webapp:

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="2017.7.9"   -DinteractiveMode=false 

Обязательные параметры для создания java проекта:

module
validationRegex: нет
module-short-name
validationRegex: нет

Модули в готовом maven проекте

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

Подробная информация об архетипе modular-webapp

Группа

Группа

net.ltgt.gwt.archetypes
Идентификатор

Идентификатор

modular-webapp
Версия

Версия

2017.7.9
Тип

Тип

maven-archetype

Как подключить последнюю версию

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