This is a Maven archetype based on the Maven Quickstart Archetype. Apart from adding a sample Java file and test file it also includes:
- the Maven Wrapper (without the JAR)
- a
.gitignore
file - a configured Jacoco Plugin for test coverage
- my frequently used test dependencies
- an optionally configured Maven Jar Plugin for creating executable JARs
- an optionally configured Maven Assembly Plugin for creating executable JARs with all the necessary dependencies
If the archetype is not in your local Maven repository, clone the Git repo then run mvn install
.
To create a project from the archetype, run:
mvn archetype:generate \
-DarchetypeGroupId=nemethi \
-DarchetypeArtifactId=kickstart \
-DarchetypeVersion=3.0.2
You may specify -DgroupId=<your-group-id>
, -DartifactId=<your-artifact-id>
and -Dversion=<your-version>
but you can edit the default values while generating the project.
With the -DexecutableJar=<yes|no>
property you may configure whether your project's JAR should be executable.
With the -DfatJar=<yes|no>
property you may configure whether your project's JAR should include all necessary dependencies and be executable.
The generated project's Java version is set to 11 by default. You can change this with the -DjavaVersion=<version>
property.
The generated project will use JUnit 5 if the version is set to 9 or higher.
This project is licensed under the MIT License - see the LICENSE file for details.