-
Notifications
You must be signed in to change notification settings - Fork 44
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
base: trunk
Are you sure you want to change the base?
Conversation
This is the latest Maven version that still supports Java 8 and newer revapi versions. Tested with: $ docker build -t apache/cassandra-java-driver-testing-ubuntu2204 -f docker/testing/ubuntu2204_java_driver_testing.docker . $ docker run -it <image_id> bash $ mvn --version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirm that docker build
and
container_id=\$(docker run -td -e TEST_JAVA_VERSION=${TEST_JAVA_VERSION} -e SERVER_VERSION=${SERVER_VERSION} -e TEST_JAVA_MAJOR_VERSION=${testJavaMajorVersion} -v \$(pwd):/home/docker/cassandra-java-driver apache.jfrog.io/cassan-docker/apache/cassandra-java-driver-testing-ubuntu2204 'sleep 2h')
docker exec --user root \$container_id bash -c \"sudo bash /home/docker/cassandra-java-driver/ci/create-user.sh docker \$(id -u) \$(id -g) /home/docker/cassandra-java-driver\"
docker exec --user docker \$container_id './cassandra-java-driver/ci/run-tests.sh'
Works find in my local environment.
# install newer maven, 3.8.8 is latest that supports Java 8 | ||
RUN curl -sL https://dlcdn.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz -o apache-maven-3.8.8-bin.tar.gz && \ | ||
tar xzvf apache-maven-3.8.8-bin.tar.gz | ||
ENV PATH="/home/docker/apache-maven-3.8.8/bin:$PATH" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it came up recently that we should be checksumming anything we download.
that wasn't specifically with docker images in mind, but i think we can still do that.
we did it recently here: bf886bb (there's four SHAs there because we arch and os download possibilities)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
would be better with the download checksummed.
Thanks - will add the checksum |
Added checksum validation for Maven - @michaelsembwever could you take a look and deploy images when you're ready? Accompanying PR has been approved as well: apache/cassandra-java-driver#2042 |
This is the latest Maven version that still supports Java 8 and newer revapi versions.
Tested with:
$ docker build -t apache/cassandra-java-driver-testing-ubuntu2204 -f docker/testing/ubuntu2204_java_driver_testing.docker .
$ docker run -it <image_id> bash
$ mvn --version