Skip to content

Commit

Permalink
Include Maven 3.9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Delporte committed Nov 16, 2024
1 parent 559d662 commit e93b246
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pi4j-builder-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,15 @@ RUN apt-get install --yes openjdk-21-jdk-headless
ENV JAVA_HOME="/usr/lib/jvm/java-21-openjdk-$TARGETARCH/"

# install Apache Maven
RUN apt-get install --yes maven
ENV MAVEN_VERSION=3.9.4
ENV MAVEN_HOME=/opt/maven
ENV PATH=${MAVEN_HOME}/bin:${PATH}

# Install Maven
RUN apt-get install -y curl tar && \
curl -fsSL https://downloads.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz | tar -xz -C /opt && \
mv /opt/apache-maven-${MAVEN_VERSION} ${MAVEN_HOME} && \
rm -rf /var/lib/apt/lists/*

# configure Maven with custom settings for defined M2 repository path
COPY maven-settings.xml /usr/share/maven/conf/settings.xml
Expand Down

0 comments on commit e93b246

Please sign in to comment.