Maven archetype with recent java version, JUnit5, assertj and git repository in place.
Includes:
- Java version of your choice, e.g. 21
- JUnit5
- assertj
A git repo will be initialized for the created project.
There is a .gitignore
file with defaults for
Maven, IntelliJ IDEA and VSCode.
mvn archetype:generate -DarchetypeGroupId=io.github.manedev79 \
-DarchetypeArtifactId=archetype-java-junit \
-DarchetypeVersion=1.0.10 \
-DjavaVersion=21
-DgitInit=true
The Java version to use in the created project.
Possible values: Any valid Java version.
Example: javaVersion=21
Whether to initialize a git repository in the created project or not.
Possible values: true
or false
.
- Requires Java 21.
- Optional: sdkman for switching JDK
- Use
sdk env
to switch to JDK specified in.sdkmanrc
.
- Use
mvn install