Maven Archetypes For Micronaut Framework.
To see available archetypes and pick one to instantiate:
mvn archetype:generate -Dfilter=cc.gasches.archetypes:micronaut
- JDK 8 (or higher)
- Maven 3
Java:
mvn archetype:generate \
-DinteractiveMode=false \
-DarchetypeGroupId=cc.gasches.archetypes \
-DarchetypeArtifactId=micronaut-java-service \
-DarchetypeVersion=1.1.0.M2-1 \
-DgroupId=com.example \
-DartifactId=micronaut-example \
-Dpackage=com.example.micronaut \
-DbuildTool=maven
Note: Available buildTool
options: gradle, maven (default). This property is used only for Dockerfile conditional templating.
Kotlin:
mvn archetype:generate \
-DinteractiveMode=false \
-DarchetypeGroupId=cc.gasches.archetypes \
-DarchetypeArtifactId=micronaut-kotlin-service \
-DarchetypeVersion=1.1.0.M2-1 \
-DgroupId=com.example \
-DartifactId=micronaut-example \
-Dpackage=com.example.micronaut \
-DbuildTool=maven
Groovy:
mvn archetype:generate \
-DinteractiveMode=false \
-DarchetypeGroupId=cc.gasches.archetypes \
-DarchetypeArtifactId=micronaut-groovy-service \
-DarchetypeVersion=1.1.0.M2-1 \
-DgroupId=com.example \
-DartifactId=micronaut-example \
-Dpackage=com.example.micronaut \
-DbuildTool=maven
Java:
mvn archetype:generate \
-DinteractiveMode=false \
-DarchetypeGroupId=cc.gasches.archetypes \
-DarchetypeArtifactId=micronaut-java-cli \
-DarchetypeVersion=1.1.0.M2-1 \
-DgroupId=com.example \
-DartifactId=micronaut-example \
-Dpackage=com.example.micronaut
Kotlin:
mvn archetype:generate \
-DinteractiveMode=false \
-DarchetypeGroupId=cc.gasches.archetypes \
-DarchetypeArtifactId=micronaut-kotlin-cli \
-DarchetypeVersion=1.1.0.M2-1 \
-DgroupId=com.example \
-DartifactId=micronaut-example \
-Dpackage=com.example.micronaut
Groovy:
mvn archetype:generate \
-DinteractiveMode=false \
-DarchetypeGroupId=cc.gasches.archetypes \
-DarchetypeArtifactId=micronaut-groovy-cli \
-DarchetypeVersion=1.1.0.M2-1 \
-DgroupId=com.example \
-DartifactId=micronaut-example \
-Dpackage=com.example.micronaut
Java:
mvn archetype:generate \
-DinteractiveMode=false \
-DarchetypeGroupId=cc.gasches.archetypes \
-DarchetypeArtifactId=micronaut-java-function-aws \
-DarchetypeVersion=1.1.0.M2-1 \
-DgroupId=com.example \
-DartifactId=micronaut-example \
-Dpackage=com.example.micronaut
Maven:
./mvnw package exec:exec
Gradle:
./gradlew run