Skip to content

[Ubuntu] Use archive.apache.org for Maven downloads - #13958

Closed
msl0 wants to merge 1 commit into
actions:mainfrom
msl0:fix/ubuntu-maven-archive-url
Closed

[Ubuntu] Use archive.apache.org for Maven downloads#13958
msl0 wants to merge 1 commit into
actions:mainfrom
msl0:fix/ubuntu-maven-archive-url

Conversation

@msl0

@msl0 msl0 commented Apr 23, 2026

Copy link
Copy Markdown

Description

Switches Ubuntu Maven download source from dlcdn.apache.org to archive.apache.org in images/ubuntu/scripts/build/install-java-tools.sh.

This avoids recurring build failures when older Maven patch versions are removed from the CDN mirror and the pinned version in the toolset is no longer available.

Related issue

Fixes #13771
Fixes #13961
Closes #13961

Validation

  • Verified the updated Maven URL pattern resolves for the currently pinned Maven version (3.9.14): HTTP 200 OK.
  • Confirmed the change is minimal and preserves existing install flow (single URL host change).

Check list

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

Copilot AI review requested due to automatic review settings April 23, 2026 10:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Ubuntu image Java tooling installer to download Apache Maven from archive.apache.org instead of dlcdn.apache.org, preventing build failures when older pinned Maven patch versions are removed from the CDN mirror.

Changes:

  • Switch Maven download host from dlcdn.apache.org to archive.apache.org while keeping the same Maven version and path structure.

@patrix87

Copy link
Copy Markdown
Contributor

It would be really nice if it worked like the windows image where you can specify 3.9 to get the latest.

@msl0

msl0 commented May 3, 2026

Copy link
Copy Markdown
Author

@erik-bershel @v-sergei-pyshnoi @shamil-mubarakshin @v-SergeiRadich @v-AndriiKhyliuk can you help me to proceed with this change?

@ghost

ghost commented May 8, 2026

Copy link
Copy Markdown

@erik-bershel @v-sergei-pyshnoi @shamil-mubarakshin @v-SergeiRadich @v-AndriiKhyliuk can you help me to proceed with this change?

The problem is fixed since #13993 merge.

@v-sergei-pyshnoi

Copy link
Copy Markdown
Contributor

Upstream is changed in #13993 . Closing PR

@msl0
msl0 deleted the fix/ubuntu-maven-archive-url branch May 15, 2026 08:11
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.

[Ubuntu] Recurring Maven build breaks when dlcdn removes previous patch versions Maven new version released.

4 participants