Skip to content

Upgrade to Maven 3.8.8 for CASSJAVA-102 #117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion docker/testing/ubuntu2204_java_driver_testing.docker
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ MAINTAINER Apache Cassandra <dev@cassandra.apache.org>

RUN export DEBIAN_FRONTEND=noninteractive && \
apt update && \
apt install -y curl git virtualenv software-properties-common vim maven sudo && \
apt install -y curl git virtualenv software-properties-common vim sudo && \
add-apt-repository -y ppa:deadsnakes/ppa && \
apt update

Expand All @@ -31,6 +31,19 @@ USER docker

WORKDIR /home/docker

# install newer maven, 3.8.8 is latest that supports Java 8
# checksum at: https://downloads.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz.sha512
RUN sh -c '\
MAVEN_DOWNLOAD_TAR_PATH="apache-maven-3.8.8-bin.tar.gz"; \
MAVEN_388_SHA512="332088670d14fa9ff346e6858ca0acca304666596fec86eea89253bd496d3c90deae2be5091be199f48e09d46cec817c6419d5161fb4ee37871503f472765d00"; \
curl --fail --silent --retry 2 --retry-delay 5 --max-time 30 -L https://dlcdn.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz -o "$MAVEN_DOWNLOAD_TAR_PATH"; \
DOWNLOADED_SHA512="$(sha512sum "$MAVEN_DOWNLOAD_TAR_PATH" | cut -d" " -f1)"; \
if [[ "$MAVEN_388_SHA512" != "$DOWNLOADED_SHA512" ]]; \
then echo "Maven checksum mismatch: expected $MAVEN_388_SHA512, got $DOWNLOADED_SHA512. Exiting"; exit 1; \
fi; \
tar xzvf apache-maven-3.8.8-bin.tar.gz;'
ENV PATH="/home/docker/apache-maven-3.8.8/bin:$PATH"

# install jabba and java versions
RUN export JABBA_HOME="$HOME/.jabba" && \
curl -sL https://github.com/Jabba-Team/jabba/raw/main/install.sh | bash && . /home/docker/.jabba/jabba.sh
Expand Down