Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gasches/micronaut-archetypes
Micronaut Maven Archetypes
https://github.com/gasches/micronaut-archetypes
archetype gradle groovy java kotlin maven micronaut quickstart
Last synced: about 1 month ago
JSON representation
Micronaut Maven Archetypes
- Host: GitHub
- URL: https://github.com/gasches/micronaut-archetypes
- Owner: gasches
- License: apache-2.0
- Created: 2019-03-26T17:24:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-11T06:44:02.000Z (over 5 years ago)
- Last Synced: 2024-10-31T00:09:42.362Z (about 2 months ago)
- Topics: archetype, gradle, groovy, java, kotlin, maven, micronaut, quickstart
- Language: Java
- Homepage:
- Size: 218 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Micronaut Maven Archetypes
======================================Summary
-------
Maven Archetypes For [Micronaut](http://micronaut.io) Framework.To see available archetypes and pick one to instantiate:
```bash
mvn archetype:generate -Dfilter=cc.gasches.archetypes:micronaut
```Prerequisites
-------------- JDK 8 (or higher)
- Maven 3Create Service
----------------Java:
```bash
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:
```bash
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:
```bash
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
```Create CLI Application
----------------Java:
```bash
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:
```bash
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:
```bash
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
```Create AWS Function
----------------Java:
```bash
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
```Run Created Application
----------------Maven:
```bash
./mvnw package exec:exec
```Gradle:
```bash
./gradlew run
```