diff --git a/CHANGELOG.md b/CHANGELOG.md
index 68a0f46c3..0e2b97798 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,7 +10,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Fix enabling a realm clears the value of eventsExpiration
-## [6.1.10] - 2024-10-14
+## [6.1.11] - 2024-10-14
+
+- Fix env.JAVA_HOME test failures by ensuring env is set before build
+
+## [6.1.10] - 2024-10-04
+
- Fixed securityContext entries in job template
diff --git a/mvnw b/mvnw
index 8d937f4c1..d1a70ba8f 100755
--- a/mvnw
+++ b/mvnw
@@ -130,6 +130,7 @@ fi
if [ -z "$JAVA_HOME" ] ; then
echo "Warning: JAVA_HOME environment variable is not set."
+ exit 1
fi
# traverses directory structure from process work directory to filesystem root
diff --git a/pom.xml b/pom.xml
index 8095d6b1d..fb984f042 100644
--- a/pom.xml
+++ b/pom.xml
@@ -277,6 +277,11 @@
${project.artifactId}
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+ 3.4.1
+
maven-release-plugin
${maven-release-plugin.version}
@@ -372,6 +377,27 @@
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+
+
+ enforce-java-home
+
+ enforce
+
+
+
+
+ JAVA_HOME
+ JAVA_HOME environment variable must be set!
+
+
+ true
+
+
+
+
org.apache.maven.plugins
maven-resources-plugin