Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 773 Bytes

File metadata and controls

40 lines (28 loc) · 773 Bytes

Java 17 + JUnit 5 Quickstart Maven Archetype

Summary

The project is a Maven archetype for Java 8 and JUnit 5

Prerequisites

  • JDK 17
  • Maven 3

Install archetype locally

To install the archetype in your local repository execute the following commands:

    git clone https://github.com/adrianelsener/java-junit5-archetype.git
    cd java-junit5-archetype
    mvn clean install

Last step: creating a project

 mvn archetype:generate \
 -DarchetypeGroupId=com.tbp \
 -DarchetypeArtifactId=java-junit5-archetype \
 -DarchetypeVersion=1.0.0-SNAPSHOT  \
 -DgroupId=com.example       \
 -DartifactId=my-project      \
 -DinteractiveMode=false