From 7c217da2b68762f8f83582a085ee81ccb39f450c Mon Sep 17 00:00:00 2001 From: Pritish <22941460+namastepritish@users.noreply.github.com> Date: Mon, 6 Jul 2026 18:57:21 +0530 Subject: [PATCH] Upgrade Maven compiler source and target to 1.8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi, While testing DevOps-Project-05 with the latest Jenkins Docker image and newer JDK versions, I noticed that the Maven build fails because the project is still configured with Java 7 source/target compatibility. Error observed: "Source option 7 is no longer supported. Use 8 or later." Modern JDK versions no longer support compiling with source/target 1.7, so I have updated the Maven compiler configuration from Java 1.7 to Java 1.8. Changes: - Updated maven.compiler.source from 1.7 → 1.8 - Updated maven.compiler.target from 1.7 → 1.8 This keeps the project compatible with newer Jenkins + Docker environments while maintaining backward compatibility. Tested with: - Jenkins running in Docker - Maven build: mvn clean install - OpenJDK newer runtime Build passes successfully after this change. Thanks for maintaining this helpful DevOps learning repository! --- DevOps-Project-05/hello-world/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DevOps-Project-05/hello-world/pom.xml b/DevOps-Project-05/hello-world/pom.xml index 187d2a36..18b495f7 100644 --- a/DevOps-Project-05/hello-world/pom.xml +++ b/DevOps-Project-05/hello-world/pom.xml @@ -34,8 +34,8 @@ maven-compiler-plugin - 1.7 - 1.7 + 1.8 + 1.8