Skip to content

Commit e001d62

Browse files
blink-so[bot]bpmct
andcommitted
Fix Maven download URLs to use reliable Apache mirror
Replace dlcdn.apache.org with downloads.apache.org for Maven downloads in both Java and Universal images. The CDN was returning 404 errors, while the main Apache downloads mirror is more reliable. Co-authored-by: bpmct <[email protected]>
1 parent 1315bc6 commit e001d62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

images/java/ubuntu.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ENV MAVEN_CONFIG="/home/coder/.m2"
1818

1919
RUN mkdir -p $MAVEN_HOME $MAVEN_HOME/ref \
2020
&& echo "Downloading maven" \
21-
&& curl -fsSL -o /tmp/apache-maven.tar.gz https://dlcdn.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz \
21+
&& curl -fsSL -o /tmp/apache-maven.tar.gz https://downloads.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz \
2222
&& echo "Checking downloaded file hash" \
2323
&& echo "${MAVEN_SHA512} /tmp/apache-maven.tar.gz" | sha512sum -c - \
2424
&& echo "Unzipping maven" \

images/universal/ubuntu.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RUN wget -O go.tar.gz https://go.dev/dl/go1.21.5.linux-amd64.tar.gz \
3333
&& rm go.tar.gz
3434

3535
# Install Maven
36-
RUN wget -O maven.tar.gz https://dlcdn.apache.org/maven/maven-3/3.9.10/binaries/apache-maven-3.9.10-bin.tar.gz \
36+
RUN wget -O maven.tar.gz https://downloads.apache.org/maven/maven-3/3.9.10/binaries/apache-maven-3.9.10-bin.tar.gz \
3737
&& tar -C /opt -xzf maven.tar.gz \
3838
&& mv /opt/apache-maven-3.9.10 /opt/maven \
3939
&& rm maven.tar.gz

0 commit comments

Comments
 (0)