Create Java project with Maven archetype tomcat-maven-archetype


Create a Java Project by archetype tomcat-maven-archetype with Command Line:

mvn archetype:generate   -DgroupId="com.mycompany.app"   -DartifactId="my-app-id"   -DarchetypeGroupId="org.apache.tomcat.maven"   -DarchetypeArtifactId="tomcat-maven-archetype"   -DarchetypeVersion="2.0"   -DinteractiveMode=false 

Generated Project modules

  • ${rootArtifactId}-api
  • ${rootArtifactId}-api-impl
  • ${rootArtifactId}-webapp
  • ${rootArtifactId}-webapp-exec
  • ${rootArtifactId}-webapp-it

Details about maven archetype tomcat-maven-archetype

GroupId

GroupId

org.apache.tomcat.maven
ArtifactId

ArtifactId

tomcat-maven-archetype
Version

Version

2.0
Type

Type

maven-archetype

How to add to project

mvn archetype:generate -DgroupId=<com.mycompany.app> -DartifactId=<my-app>  -DarchetypeGroupId=org.apache.tomcat.maven -DarchetypeArtifactId=tomcat-maven-archetype -DarchetypeVersion=2.0 -DinteractiveMode=false