Create Java project with Maven archetype spring-webmvc-archetype
Create a multi-module maven project for a native ready Spring REST API with webmvc, JPA, OpenID security and OpenAPI
Create a Java Project by archetype spring-webmvc-archetype with Command Line:
mvn archetype:generate -DgroupId="com.mycompany.app" -DartifactId="my-app-id" -DarchetypeVersion="My-archetypeVersion" -Darchetype-release-version="My-archetype-release-version" -Dpackage="My-package" -Dapi-artifactId="My-api-artifactId" -Dapi-path="My-api-path" -Dspring-boot-version="My-spring-boot-version" -Dc4-soft-springaddons-version="My-c4-soft-springaddons-version" -Djava-version="My-java-version" -Dhibernate-enhance-maven-plugin-version="My-hibernate-enhance-maven-plugin-version" -Dlombok-mapstruct-binding-version="My-lombok-mapstruct-binding-version" -Dmapstruct-version="My-mapstruct-version" -Dspring-native-version="My-spring-native-version" -Dspringdoc-openapi-version="My-springdoc-openapi-version" -Dspringdoc-openapi-maven-plugin-version="My-springdoc-openapi-maven-plugin-version" -Djwt-issuer-uri="My-jwt-issuer-uri" -DarchetypeGroupId="com.c4-soft.springaddons" -DarchetypeArtifactId="spring-webmvc-archetype" -DarchetypeVersion="3.1.18-jdk17" -DinteractiveMode=false
Required parameters for generate java project:
- archetypeVersion
-
validationRegex: none
- archetype-release-version
-
validationRegex: none
- package
-
validationRegex: [a-zA-Z][\w\.]+
- api-artifactId
-
validationRegex: [a-zA-Z][\w\-]+
- api-path
-
validationRegex: [a-zA-Z][\w\-\/]+
- spring-boot-version
-
validationRegex: none
- c4-soft-springaddons-version
-
validationRegex: none
- java-version
-
validationRegex: none
- hibernate-enhance-maven-plugin-version
-
validationRegex: none
- lombok-mapstruct-binding-version
-
validationRegex: none
- mapstruct-version
-
validationRegex: none
- spring-native-version
-
validationRegex: none
- springdoc-openapi-version
-
validationRegex: none
- springdoc-openapi-maven-plugin-version
-
validationRegex: none
- jwt-issuer-uri
-
validationRegex: none
Generated Project modules
- dtos
- exceptions
- ${api-artifactId}
Details about maven archetype spring-webmvc-archetype
GroupId |
GroupIdcom.c4-soft.springaddons |
ArtifactId |
ArtifactIdspring-webmvc-archetype |
Version |
Version3.1.18-jdk17 |
Type |
Typemaven-archetype |
How to add to project