A Maven Archetype to Setup Kotlin Applications With Maven.
Quick Start Archetype is available in The Central Repository, so you just need to execute maven archetype:generate
in command line or your favorite IDE.
Example:
mvn archetype:generate \
-DarchetypeGroupId=com.github.mhshams \
-DarchetypeArtifactId=kotlin-quickstart-archetype \
-DarchetypeVersion=0.2.1
The default kotlin version is 1.0.5-2 but you can override it by setting kotlinVersion parameter during build.
Example:
$ mvn archetype:generate \
-DarchetypeGroupId=com.github.mhshams \
-DarchetypeArtifactId=kotlin-quickstart-archetype \
-DarchetypeVersion=0.2.1 \
-DkotlinVersion=1.0.5-2
For more information about maven archetype plugin, check this page.
You can also clone the archetype source code and build it in your local machine:
$ git clone https://github.com/kareez/kotlin-quickstart-archetype.git
$ cd kotlin-quickstart-archetype
$ mvn install