/java-spring-boot-maven-archetype

A maven archetype for generating projects with Java and SpringBoot

Primary LanguageJavaMIT LicenseMIT

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