Building a Java App with Maven in Jenkins

In my DevOps learning path, I’ve been experimenting with different tools and workflows. Today, I decided to create a small Java HelloWorld app and build it using Jenkins with Maven — not because it’s my first Jenkins project, but because I wanted to keep practicing and reinforcing the basics.

🗓 How It Started

This wasn’t my first time working with Jenkins. I’ve done more complex pipelines before. But I wanted something simple this time — a “quick win” to remind myself that not every project needs to be massive to be valuable.

I spun up a tiny Java app that just says:

Hello, Jenkins + Maven!

No frameworks. No microservices. Just pure, old-school Java and Maven.

📌 Why This Project?

Sometimes, even after working on bigger setups, it’s nice to revisit the fundamentals. This project was a quick refresher on:

  • Running a Java build with Maven

  • Configuring a Jenkins Freestyle job

  • Making sure my setup is still smooth


🛠 What I Used

  • Java (8+)

  • Maven (3.8.x or later)

  • Jenkins (local setup)

  • Git


  • ⚙ Jenkins Setup

  • Create a New Freestyle Job in Jenkins

  • Add Git repo under Source Code Management

  • Build step → Invoke top-level Maven targetsclean install

  • Save and Build Now


✅ The Result

The console output ended with the magic words:

[INFO] BUILD SUCCESS
0
Subscribe to my newsletter

Read articles from HARSHAL VERNEKAR directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

HARSHAL VERNEKAR
HARSHAL VERNEKAR

🚀 Aspiring DevOps & Cloud Engineer with a strong foundation in cloud platforms (AWS), infrastructure automation, and container orchestration tools like Docker and Kubernetes. I’m passionate about building reliable, scalable, and secure cloud-native applications. 🔧 Currently building real-world projects using Terraform, Ansible, Jenkins, GitHub Actions, and EKS to understand how modern infrastructure is deployed, managed, and monitored. I enjoy breaking things (safely), debugging, and learning from hands-on experience. 📦 Comfortable working with: AWS (EC2, S3, IAM, VPC, EKS) Docker, Kubernetes (Minikube & EKS) CI/CD tools like Jenkins & GitHub Actions IaC tools like Terraform & Ansible Monitoring with Prometheus & Grafana Linux, Bash, Git, and Networking fundamentals 💡 Always learning — currently exploring deeper concepts in Kubernetes workloads, Helm, and scaling best practices. 🔍 Open to DevOps, Cloud, or SRE roles where I can grow, contribute, and solve real-world problems.