Skip to content

Conversation

@kaby76
Copy link
Contributor

@kaby76 kaby76 commented Oct 25, 2025

This PR fixes #4647.

Briefly, Maven Central blocks requests when bandwidth usage exceeds a threshold (https://central.sonatype.org/faq/403-error-central/#question). This can occur with builds.

The solution implemented here uses a version of the antlr4-tools that I updated to download from https://github.com/antlr/website-antlr4/tree/gh-pages/download instead of https://repo1.maven.org/maven2/org/antlr/antlr4/. In addition, the Python tool was not programmed to be very robust: with slow network communications, requests would time out. The code was updated to be more robust.

For more information on the updated antlr4-tools, see https://github.com/kaby76/antlr4-tools/tree/tools-fix-fetches and https://pypi.org/project/antlr4-tools-ken.domino/.

Reference alternative package containing updated antlr4 tool.
Added for testing build using new antlr4 tools.
@kaby76 kaby76 changed the title [build] Fix for #4647: Maven Central unreliable, use alternative. [build] Fix for #4647: Maven Central unreliable, use cached JARs at https://github.com/antlr/website-antlr4/tree/gh-pages/download. Oct 25, 2025
@kaby76 kaby76 changed the title [build] Fix for #4647: Maven Central unreliable, use cached JARs at https://github.com/antlr/website-antlr4/tree/gh-pages/download. [build] Fix for #4647: Maven Central unreliable, use download page for antlr.org at GitHub. Oct 25, 2025
@kaby76 kaby76 marked this pull request as ready for review October 25, 2025 11:35
@kaby76 kaby76 changed the title [build] Fix for #4647: Maven Central unreliable, use download page for antlr.org at GitHub. [build] Fix for #4647: Maven Central unreliable, use Antlr download page at GitHub. Oct 25, 2025
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.

[Build] Maven Central unreliable in builds.

1 participant