Skip to content

cchacin/java-maven-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java 25 Maven Template

Maven Build

Modern Java 25 Maven template with best practices, testing excellence, and CI/CD ready to use.

🌐 View Full Documentation

What's Included

🧪 Modern Testing Stack

  • JUnit 5, AssertJ, jqwik property testing, ArchUnit architecture testing
  • Separated unit and integration tests with parallel execution

⚙️ Build & Quality

  • Maven Wrapper (no local Maven required)
  • Spotless code formatting with Google Java Format (AOSP style)
  • GitHub Actions CI/CD with Oracle JDK 25

🔧 Developer Tools

  • JShell integration for REPL development
  • Java version management with jenv
  • Modularization ready with JPMS

Quick Start

  1. Use This Template on GitHub
  2. Clone your new repository
  3. Run ./mvnw test to verify everything works
  4. Start building your application!

Commands

  • ./mvnw test - Run unit tests
  • ./mvnw verify - Run all tests and quality checks
  • ./mvnw spotless:apply - Format code
  • ./mvnw jshell:run - Start interactive JShell

Requirements

  • Java 21+ (Java 25 recommended)
  • No local Maven installation needed (wrapper included)

📖 Complete Documentation • 🚀 Getting Started Guide • 🔧 Development Guide

Sponsor this project

Languages