Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit 7b0f3c6

Browse files
authored
fix: remove maven 3.6 add maven 3.9 (#64)
1 parent 160768b commit 7b0f3c6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

images/maven-temurin-17/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
FROM ghcr.io/fullstack-devops/github-actions-runner:latest-base
22

33
USER root
4-
# install packages along with jq so we can parse JSON
54
# add additional packages as necessary
6-
ARG PACKAGES="temurin-17-jdk xmlstarlet maven"
5+
ARG PACKAGES="temurin-17-jdk xmlstarlet"
76
ARG PACKAGES_PYTHON="kubernetes"
87

98
RUN apt-get update \
109
&& apt-get install -y --no-install-recommends ${PACKAGES} \
1110
&& rm -rf /var/lib/apt/lists/* \
1211
&& apt-get clean
1312

13+
# maven version > 3.6 is still not in ubuntu package managemant
14+
ENV MAVEN_VERSION=3.9.0
15+
RUN curl -fsSL https://dlcdn.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz | tar -xzC /opt/ \
16+
&& ln -s /opt/apache-maven-3.9.0/bin/mvn /usr/bin/mvn
17+
1418
# make cacerts for user accessable
1519
RUN chmod 666 /usr/lib/jvm/temurin*/lib/security/cacerts
1620

0 commit comments

Comments
 (0)