Basic Maven Archetype to create a Java project with well-known test libraries.
More information and detailed instructions: https://thepracticaldeveloper.com/archetypes
You can create a basic Maven Java project using Java 8 or 9, this property can be set when generating the project.
To use this Archetype directly from Maven Repository, you just need to run:
mvn archetype:generate -DgroupId=[your-project-groupId] -DartifactId=[your-project-name] -DarchetypeGroupId=com.thepracticaldeveloper -DarchetypeArtifactId=archetype-java-basic-tpd -DarchetypeVersion=1.0.0
This archetype includes the libraries:
- JUnit 4
- Mockito
- AssertJ
The archetype also includes a manifest file so you can run your jar file as a java executable.