Create Java project with Maven archetype samplegwt-archetype

A complete but simple archetype that connects GWT to several technologies: JPA 2, Hibernate, Spring Core, Spring Security, Spring Transactions.

Create a Java Project by archetype samplegwt-archetype with Command Line:

mvn archetype:generate   -DgroupId="com.mycompany.app"   -DartifactId="my-app-id"   -DmoduleName="My-moduleName"   -DarchetypeGroupId="com.github.apetrelli.samplegwt"   -DarchetypeArtifactId="samplegwt-archetype"   -DarchetypeVersion="1.0.0-alpha1"   -DinteractiveMode=false 

Required parameters for generate java project:

moduleName
validationRegex: none

Generated Project modules

  • ${rootArtifactId}-shared
  • ${rootArtifactId}-model
  • ${rootArtifactId}-web

Details about maven archetype samplegwt-archetype

GroupId

GroupId

com.github.apetrelli.samplegwt
ArtifactId

ArtifactId

samplegwt-archetype
Version

Version

1.0.0-alpha1
Type

Type

maven-archetype

How to add to project

mvn archetype:generate -DgroupId=<com.mycompany.app> -DartifactId=<my-app>  -DarchetypeGroupId=com.github.apetrelli.samplegwt -DarchetypeArtifactId=samplegwt-archetype -DarchetypeVersion=1.0.0-alpha1 -DinteractiveMode=false