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

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

aratno
Copy link

@aratno aratno commented Jun 4, 2025

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

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
@aratno aratno self-assigned this Jun 4, 2025
Copy link
Contributor

@SiyaoIsHiding SiyaoIsHiding left a 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"
Copy link
Member

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)

Copy link
Member

@michaelsembwever michaelsembwever left a 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.

@aratno
Copy link
Author

aratno commented Jun 10, 2025

Thanks - will add the checksum

@aratno aratno requested a review from michaelsembwever June 10, 2025 22:53
@aratno
Copy link
Author

aratno commented Jun 10, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants