Create Java project with Maven archetype spring-boot-webmvc-archetype

Creates a new Shows how to use Spring Boot with WebMVC in the Java Container

Create a Java Project by archetype spring-boot-webmvc-archetype with Command Line:

mvn archetype:generate   -DgroupId="com.mycompany.app"   -DartifactId="my-app-id"   -Denv.DOCKER_REGISTRY="My-env.DOCKER_REGISTRY"   -DarchetypeGroupId="io.fabric8.archetypes"   -DarchetypeArtifactId="spring-boot-webmvc-archetype"   -DarchetypeVersion="2.0.40"   -DinteractiveMode=false 

Required parameters for generate java project:

env.DOCKER_REGISTRY
validationRegex: none

Details about maven archetype spring-boot-webmvc-archetype

GroupId

GroupId

io.fabric8.archetypes
ArtifactId

ArtifactId

spring-boot-webmvc-archetype
Version

Version

2.0.40
Type

Type

maven-archetype

How to add to project

mvn archetype:generate -DgroupId=<com.mycompany.app> -DartifactId=<my-app>  -DarchetypeGroupId=io.fabric8.archetypes -DarchetypeArtifactId=spring-boot-webmvc-archetype -DarchetypeVersion=2.0.40 -DinteractiveMode=false