Skip to main content

Getting Started

Choose your path to start using the Java 25 Maven template based on your setup and preferences

Recommended

Scenario 1: With GitHub Account

This is the easiest and most recommended approach if you have a GitHub account.

1

Use Template

Click the "Use this template" button on the GitHub repository page.

Use This Template
2

Configure Repository

Choose a repository name, set visibility (public/private), and optionally add a description.

3

Clone Your Repository

git clone https://github.com/user/repo.git
cd repo
4

Verify Setup

./mvnw test

This will download dependencies and run all tests to verify everything works.

🎉 You're Ready to Code!

Your repository is set up with:

  • GitHub Actions CI/CD automatically enabled
  • All dependencies and configurations ready
  • Example code and tests to build upon
  • Version control history starts fresh

Scenario 2: Without GitHub Account

Download the template and set it up manually with optional Git initialization.

1

Download Template

Download the repository as a ZIP file from GitHub.

Download ZIP
2

Extract & Rename

unzip java-maven-template-main.zip
mv java-maven-template-main my-project-name
cd my-project-name
3

Initialize Git (Optional)

rm -rf .git && git init
git add . && git commit -m "Initial commit"
4

Verify Setup

./mvnw test

🔧 Optional: Connect to Remote Repository

If you want to push to a remote Git repository later:

git remote add origin https://your-repo-url.git
git branch -M main
git push -u origin main

📝 Update Project Information

Don't forget to update the project details in pom.xml:

  • groupId (org.acme → your.domain)
  • artifactId (lib → your-project-name)
  • name and description

Scenario 3: No Git Required

Quick evaluation or simple projects without version control. Perfect for learning or prototyping.

1

Download & Extract

Download and extract the template to your desired location.

Download ZIP
2

Remove Git Files

cd java-maven-template-main
rm -rf .git .github

Remove Git and GitHub Actions files since you won't need them.

3

Test Everything Works

./mvnw test

Maven wrapper will download everything needed and run tests.

4

Start Coding

Edit files in src/main/java and add tests in src/test/java.

💡 What You Get

  • Full Java 25 development environment
  • Modern testing libraries and configuration
  • Code formatting and quality tools
  • Maven wrapper (no local Maven installation needed)
  • JShell integration for interactive development

Video Tutorial 🇪🇸

Watch this video walkthrough to see the Java Maven Template in action and learn how to use its features effectively. (Video in Spanish)

What's Next?

Now that you have the template set up, explore all the features and tools included to supercharge your Java 25 development.

Support This Project

If you find this template useful, consider supporting its development!

Buy Me A Coffee