Modern Java Maven Template
Start your Java 25 project with best practices, modern testing, code quality tools, and CI/CD - all configured and ready to use.
Why Choose This Template?
Java 25 Ready
Latest Java 25 features with compiler release 25, Oracle JDK 25 in CI/CD, and modern language constructs ready to use.
Preview Features
Experiment with cutting-edge Java features before they're finalized. --enable-preview configured for compiler and all test runners.
Zero Setup Required
Maven wrapper included - no need to install Maven locally. Git configuration, JVM settings, and best practices pre-configured.
Testing Excellence
Separated unit and integration tests with Surefire and Failsafe. AssertJ, jqwik property testing, ArchUnit, and parallel execution configured.
Code Quality
Spotless code formatting with Google Java Format (AOSP style), automated formatting checks, and quality gates in CI/CD.
Build Observability
OpenTelemetry tracing and Maven build cache for performance insights and dramatically faster incremental builds.
Developer Tools
JShell integration for REPL development, jenv configuration for Java version management, and modularization ready.
CI/CD Ready
GitHub Actions workflow with Oracle JDK 25, automated builds, tests, and quality checks on every push to main branch.
Quick Start
Use Template
Click "Use this template" on GitHub or download the ZIP file directly.
Clone & Setup
Clone your new repository and optionally configure jenv for Java version management.
Start Coding
Run ./mvnw test to verify everything works, then start building your application.
What's Included
๐งช Modern Testing Stack
- JUnit 6.0.0 - Latest testing framework
- AssertJ 3.27.6 - Fluent assertions
- jqwik 1.9.3 - Property-based testing
- ArchUnit 1.4.1 - Architecture testing
- Instancio 5.5.1 - Test data generation
- Awaitility 4.3.0 - Async testing
โ๏ธ Build & Quality
- Maven Wrapper - No local Maven required
- Preview Features - --enable-preview enabled
- Build Cache Extension - Faster incremental builds
- OpenTelemetry Extension - Build observability
- Spotless Plugin - Google Java Format (AOSP)
- Surefire/Failsafe - Separated test execution
- JShell Plugin - REPL development
- Shade Plugin - Fat JAR creation (optional)
- Parallel Tests - Faster feedback
๐ง Configuration
- .mvn/extensions.xml - OpenTelemetry + Cache extensions
- .mvn/jvm.config - JVM settings (-Xmx2048m)
- .mvn/maven.config - Maven optimizations
- module-info.java - Modularization ready
- junit-platform.properties - Parallel execution
- GitHub Actions - Oracle JDK 25 CI/CD
- jenv configuration - Java version management
Ready to Start Building?
Get your Java 25 project up and running in minutes with all the modern tooling and best practices.