GitLab-CI: test and scan with  maven:3-eclipse-temurin-21

Change-Id: Iea52f42e6899a6cfaa93f9208f246abe48f4aaa6
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bfb5a69..d7c99c3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,9 +19,8 @@
 # Test and build stage - runs on all pushes
 test-and-build:
   stage: test-and-build
-  image: eclipse-temurin:25-jdk-alpine
+  image: maven:3-eclipse-temurin-21
   before_script:
-    - apk add --no-cache maven
     - export MAVEN_OPTS="$MAVEN_OPTS"
   script:
     - mvn $MAVEN_CLI_OPTS clean test package
@@ -75,9 +74,9 @@
 # Security scan stage (optional)
 security-scan:
   stage: build
-  image: eclipse-temurin:25-jdk-alpine
+  image: maven:3-eclipse-temurin-21
   before_script:
-    - apk add --no-cache maven
+    - export MAVEN_OPTS="$MAVEN_OPTS"
   script:
     - mvn $MAVEN_CLI_OPTS clean compile
   allow_failure: true