Maven archetype for a simple Java based CRUD service, based on Spring Boot.
It creates a basic and fully functional service-boot-service, with Controller, Service and Domain layers.
Download and install:
git clone https://github.com/rghiorghisor/crud-service-archetype
cd crud-service-archetype
mvn clean install
Generate service:
mvn archetype:generate \
-DserviceName={SERVICE_NAME} \
-DartifactId={SERVICE_ARTIFACT_ID} \
-DgroupId={SERVICE_GROUP_ID} \
-Dversion={SERVICE_VERSION} \
-DarchetypeGroupId=com.github.rghiorghisor.service \
-DarchetypeArtifactId=crud-service-archetype \
-DinteractiveMode=false
Example usage for a service: com.github.rghiorghisor.foo:1.0-SNAPSHOT
:
mvn archetype:generate \
-DserviceName=FOO \
-DartifactId=foo \
-DgroupId=com.github.rghiorghisor \
-Dversion=1.0-SNAPSHOT \
-DarchetypeGroupId=com.github.rghiorghisor.service \
-DarchetypeArtifactId=crud-service-archetype \
-DinteractiveMode=false