You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Direct download for jython-standalone-2.7.4.jar blocked by Maven Central anti-CDN policy #457
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
Navigate to the Jython download page.
Click the download link for jython-standalone-2.7.4.jar (pointing to Maven Central).
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.)
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.
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.
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.
Activity
jeff5 commentedon Sep 18, 2026
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.)
jeff5 commentedon Sep 26, 2026
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.
brianf commentedon Sep 27, 2026
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.
jakre1234 commentedon Sep 27, 2026
I am getting the block message as well but working fine while doing wget from terminal
jeff5 commentedon Sep 28, 2026
We're not often found amongst the more responsive projects. :)
jeff5 commentedon Sep 28, 2026
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.
jeff5 commentedon Sep 28, 2026
Proposed change to the website: jython/jython.github.io#45
jeff5 commentedon Oct 2, 2026
Links to JARs hosted on GitHub have been live on the website for a couple of days now. Hopefully this meets everyone's needs.
jeff5 commentedon Oct 2, 2026
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.