Skip to content

Direct download for jython-standalone-2.7.4.jar blocked by Maven Central anti-CDN policy #457

Closed

Description

@flacostec

Description

Attempting to download jython-standalone-2.7.4.jar directly via the link hosted on the Jython website fails. Maven Central blocks the request due to policy enforcement preventing Maven Central from being used as a public distribution CDN for end users.

Steps to Reproduce

  1. Navigate to the Jython download page.
  2. Click the download link for jython-standalone-2.7.4.jar (pointing to Maven Central).
  3. The request is rejected by the server.

Error Message

Maven Central exists to serve opensource binary dependencies for building software. It is not intended to be used as a free CDN for distribution of binaries directly to end users. This request has been identified as an improper usage of the repository. https://openssf.org/blog/2025/09/23/open-infrastructure-is-not-free-a-joint-statement-on-sustainable-stewardship/

Expected Behavior

The standalone JAR should download without triggering automated stewardship/CDN rate-limiting blocks on Maven Central.

Suggested Solutions

  • Host standalone release artifacts directly on GitHub Releases instead of hotlinking Maven Central endpoints.
  • Provide alternative official distribution mirrors or an intermediate mirror infrastructure for end-user binary downloads.

Activity

  1. jeff5 commented on Sep 18, 2026

    @jeff5
    Member

    And the installer too. It's annoying they should do this without engaging with us first. The JARs we release are large and they've cut us some slack on that.

    I think they have a legitimate point about the installer, and I'll look at GitHub Releases for that.

    The standalone JAR has over a thousand projects citing it as a dependency, meaning I assume that it is in a POM. We may think this is a bad idea, but suddenly breaking it is worse. (I'd much rather people used the slim JAR.)

  2. jeff5 commented on Sep 26, 2026

    @jeff5
    Member

    I've raised this with Sonatype the downloads from there seem to be intermittently available. Today I got the blocked message, but on a second attempt is arrived. Perhaps I'm just getting them from caches.

    Experimentally, I used GitHub Releases for 2.7.5b1 installer and standalone: https://github.com/jython/jython/releases/tag/v2.7.5b1 . As that seemed to work I'll do the same for 2.7.4 later.

  3. brianf commented on Sep 27, 2026

    @brianf

    Hi Jeff, Brian from Sonatype / Maven Central here.

    For folks not closely tracking the sustainability push across all the registries, you can read a bit more here https://central.sonatype.org/faq/429-error/ and a recent post from the OpenSSF member companies https://openssf.org/blog/2026/09/16/were-in-enterprise-commitment-to-sustainable-package-registries/ and a just this week announcement from Chocolatey that they are blocking all non-caching proxy traffic: https://chocolatey.org/terms#:~:text=agree%20not%20to%3A-,Effective%20as%20of%201%20January%202027,-%3A%20Use%20the

    Now with that background context on why we have to put some friction into the system, lets talk about a bit more of the relevant details here. I acknowledge why it's annoying we haven't been able to reach out, however we are dealing with hundreds of different use cases, client tooling and unexpected behaviors. I do reach out in many cases, but it's just not practical to do it in every possible case at Global scale.

    Instead, I try to develop capabilities that can identify and sensibly address behaviors of all kinds we think are not correct. In this case, we identified many large downloads that are coming in to the system via direct download links on websites. We therefore create a rule in the system to identify and try to put some friction to cause people to either change the behavior by creating helpful documentation and linking it in the error, or providing a mechanism for people to reach out to us. Specifically, this was not a rule targeting jython, it was a rule targeting the direct download behavior across the board and many projects.

    In this case, it worked. There are dozens or more where the projects aren't doing anythign and not talking to us (yet)

    Now, this wasn't an outright block because I'm not trying to blow things up capreciously, instead, we put an actual time-rate limit in place to slow down the downloads from this mechanism. This is why you don't see it happening all the time, it's only when it bursts above a limit and then the count decays. The limits are only in place for direct downloads and do not (in most cases, but definitely not yours) affect actual builds.

    The right answer here is to host your installer download somewhere with your project and send users there from your website. The smaller jars aren't really as much of a concern but they would be getting limited in the direct from the website download because of how we identify that traffic (vs build traffic). Once the install is sorted, I can make sure that the jars themselves can get through if you don't want to also put that on your website. In some cases, we've worked with projects to insert rewrite rules for their packages, but that applies more appropriately to automated systems that aren't as easy to change as a website url.

    Hopefully that context help everyone understand that getting global traffic under control without unessessary drama for users is not always perfect, but we are trying hard to create just enough friction to get the right behaviors in place.

  4. jakre1234 commented on Sep 27, 2026

    @jakre1234

    I am getting the block message as well but working fine while doing wget from terminal

  5. jeff5 commented on Sep 28, 2026

    @jeff5
    Member

    In this case, it worked. There are dozens or more where the projects aren't doing anythign and not talking to us (yet)

    We're not often found amongst the more responsive projects. :)

  6. jeff5 commented on Sep 28, 2026

    @jeff5
    Member

    Here are the two largest artefacts as a release: https://github.com/jython/jython/releases#release-v2.7.4, and the current beta of those is nearby. I'll make the website point at those in preference to Sonatype.

    v2.7.5b1 is styled as a "pre-release" and doesn't show in the sidebar, but you can navigate to it though tags.

    We should probably make immutable releases, but I'd like to see if we're doing it right first.

  7. jeff5 commented on Sep 28, 2026

    @jeff5
    Member

    Proposed change to the website: jython/jython.github.io#45

  8. jeff5 commented on Oct 2, 2026

    @jeff5
    Member

    Links to JARs hosted on GitHub have been live on the website for a couple of days now. Hopefully this meets everyone's needs.

  9. jeff5 commented on Oct 2, 2026

    @jeff5
    Member

    I'd like the standalone JAR to be accessible through Maven Central as a dependency in Gradle and other builds. If a user's intention is to download that JAR manually, then at least the obvious page to consult sends them directly to the GitHub release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions