Skip to content

A maven archetype for generating projects with Java 21 and JUnit 5

License

Notifications You must be signed in to change notification settings

willyancaetano/java-21-archetype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Maven archetype project for using Java 21

This is a Maven archetype project for using Java 21

How to use

  1. Clone this repository.
  2. Install and configure Java 21 and Maven 3.9.5.
  3. Run mvn clean install.
  4. After you do that, you can cd ../somewhere-else and run mvn archetype:generate, and the last item on the list will be your locally installed archetype, which you can select by number. The image below shows an example:

Selection_001

The resulting Java project contains a minimal HelloWorld and accompanying test and uses the latest JUnit 5.x and latest versions of various Maven plugins. To package and run the resulting project, you'd typically:

  • mvn clean package
  • java -jar target/${artifactId}-${version}.jar

About

A maven archetype for generating projects with Java 21 and JUnit 5

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published