chore(docker): Update Java and Maven versions with improved resilience#15
chore(docker): Update Java and Maven versions with improved resilience#15petersmythe wants to merge 2 commits into
Conversation
petersmythe
commented
May 25, 2026
- Upgrade OpenJDK from version 11 to 17
- Update Maven from version 3.9.12 to 3.9.16
- Add fallback Maven download source (archive.apache.org) for improved resilience
- Update JAVA_HOME environment variable to reference Java 17 installation path
- Improves compatibility and adds redundancy for Maven installation reliability
- Upgrade OpenJDK from version 11 to 17 - Update Maven from version 3.9.12 to 3.9.16 - Add fallback Maven download source (archive.apache.org) for improved resilience - Update JAVA_HOME environment variable to reference Java 17 installation path - Improves compatibility and adds redundancy for Maven installation reliability
…mpts - Add git credential helper configuration with 60-second timeout - Cache credentials in memory to avoid repeated authentication prompts during setup - Improves user experience when running multiple git operations in sequence
|
@jodygarnett @aaime please can you review, and please can I get commit access to this repo? |
|
I'd hear first from @smithkm |
|
Nudge |
|
@jodygarnett was saying he still wants to have a 2.27.x release a couple of meetings ago, that would still need jdk 11.x. |
| unzip \ | ||
| openjdk-11-jdk \ | ||
| openjdk-17-jdk \ | ||
| python3-pip \ |
There was a problem hiding this comment.
This makes sense! Did not know this was still on 11.
| RUN wget https://dlcdn.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.zip -O /tmp/maven.zip && \ | ||
| ARG MAVEN_VERSION=3.9.16 | ||
| # Install Maven (try CDN first, fall back to archive for resilience) | ||
| RUN (wget https://dlcdn.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.zip -O /tmp/maven.zip || \ |
There was a problem hiding this comment.
If the CDN fails do we have a partial file left to get in the way of the next option?
Okay -O takes care of it... "overwrite"...
jodygarnett
left a comment
There was a problem hiding this comment.
You are right Andrea it would be handy to have this available for older releases also? Do we need a duplicate or can we supply a parameter ...
smithkm
left a comment
There was a problem hiding this comment.
Sorry about the delay in looking at this. It looks fine to me.