From ff41182a1ead16f2bf0733a058aea5b68bbf1115 Mon Sep 17 00:00:00 2001 From: Frank Delporte Date: Sat, 16 Nov 2024 16:31:00 +0100 Subject: [PATCH] Specify Maven version --- pi4j-builder-base/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pi4j-builder-base/Dockerfile b/pi4j-builder-base/Dockerfile index 5ccf2b6..e618c91 100644 --- a/pi4j-builder-base/Dockerfile +++ b/pi4j-builder-base/Dockerfile @@ -34,6 +34,7 @@ RUN apt-get install --yes openjdk-21-jdk-headless ENV JAVA_HOME="/usr/lib/jvm/java-21-openjdk-$TARGETARCH/" # install Apache Maven +RUN apt list -a maven RUN apt-get install --yes maven=3.9.0 # configure Maven with custom settings for defined M2 repository path @@ -43,6 +44,10 @@ RUN mkdir -p /m2/repository && chmod -R a+rw /m2 && chmod -R g+s /m2 # clean APT cache RUN apt-get clean +# validate installed versions +RUN java -version +RUN mvn -v + # configure build time environment variables ENV BUILD_FOLDER=/build ENV PI4J_BUILDER="$BUILDVERSION"