Why not use archive.apache.org instead of dlcdn.apache.org to download Maven ? #7449
jonathan-schiltz-cap4lab
started this conversation in
Image configuration
Replies: 1 comment
-
HI @jonathan-schiltz-cap4lab . Thanks for your advice! We will take look. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello ! In https://github.com/actions/runner-images/blob/main/images/linux/scripts/installers/java-tools.sh line 131
mavenDownloadUrl="https://dlcdn.apache.org/maven/maven-3/${mavenVersion}/binaries/apache-maven-${mavenVersion}-bin.zip"
We usedlcdn.apache.org
to download the Maven binaries. However,dlcdn
hosts only latest patch of every minor. You're currently using 3.8.8 (hardcoded in a config file). So when 3.8.9 is released, the image build will fail to fetch 3.8.8.Why don't we use
archive.apache.org
instead as the url will "forever" serve the version ? Maintainers would not have to rush the Maven upgrade when Apache releases a patch.The line linked above would become
mavenDownloadUrl="https://archive.apache.org/dist/maven/maven-3/${mavenVersion}/binaries/apache-maven-${mavenVersion}-bin.zip"
. Please mind the/dist
between thearchive.apache.org
and the/maven
.Thanks for your consideration and all the efforts you make to deliver these images to the community.
I hope this idea will be useful to the maintainers.
Best regards,
Jonathan
Beta Was this translation helpful? Give feedback.
All reactions