Skip to content

Commit 75dbb91

Browse files
committed
Manually install Maven 3.9.10 in Dockerfile
Manually installs Maven version 3.9.10. The highest version that package manager sees with current setup is 3.6.0 which is not sufficient for some of the newer plugins in recent java-driver versions. This will break any archaic versions that require Java older than 8.
1 parent 4173818 commit 75dbb91

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,15 @@ RUN apt-get -y update \
1919
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/xenial-security.gpg] http://security.ubuntu.com/ubuntu \
2020
xenial-security main" | tee /etc/apt/sources.list.d/xenial-security.list > /dev/null \
2121
&& apt-get -y update \
22-
&& apt-get install -y temurin-8-jdk maven git docker-ce-cli python2 libssl1.0.0 libapr1 \
22+
&& apt-get install -y temurin-8-jdk git docker-ce-cli python2 libssl1.0.0 libapr1 \
2323
&& apt-get install -y temurin-11-jdk \
24-
&& rm -rf /var/lib/apt/lists/*
24+
&& rm -rf /var/lib/apt/lists/* \
25+
&& wget https://dlcdn.apache.org/maven/maven-3/3.9.10/binaries/apache-maven-3.9.10-bin.tar.gz \
26+
&& tar -xvzf apache-maven-3.9.10-bin.tar.gz -C /opt \
27+
&& ln -s /opt/apache-maven-3.9.10 /opt/maven
28+
29+
ENV MAVEN_HOME=/opt/maven
30+
ENV PATH="$MAVEN_HOME/bin:${PATH}"
2531

2632
RUN echo 2 | update-alternatives --config java
2733

0 commit comments

Comments
 (0)