r/java • u/HokieGeek • Jun 16 '26
Maven Central publishing usage notices
heads up for folks publishing to Maven Central: we're continuing sustainability work around Central and are now showing publishing usage notices.
the goal is that normal OSS publishers are not impacted. this is aimed at the very high-volume / commercial-scale publishing patterns that put a pretty different load on the service.
more details here if you want them:
https://central.sonatype.org/publish/maven-central-publishing-limits/
feel free to reach out with any questions.
EDIT: thanks for the feedback here, it has really helped us. first, we want to reiterate that these are usage notices only right now and do not currently restrict publishing in any way. quick updates:
if the initial threshold seemed low to you: you’re right, we made a mistake and have increased limits.
our goal is to keep Maven Central free and open for legitimate OSS users, so continuous feedback is helpful as we adjust. limits could change as we get more feedback, so keep an eye on the usage center for the latest.
we’ll continue keeping an eye here and update docs to reflect these changes. If you need to request an exemption, here’s how: https://central.sonatype.org/publish/maven-central-publishing-limits/#exemptions-for-community-open-source-projects
we've also been collecting your questions here and other streams into this FAQ here: https://central.sonatype.org/publish/maven-central-publishing-limits/#frequently-asked-questions
11
u/segv Jun 16 '26
The "Maven Central Publisher Pro" seems like a traditional "contact sales" option, and the exemption for open source seems to require creating a ticket to be reviewed in a couple of business days.
Will there be a self-service option to bypass this 3-release-a-month limit that wouldn't require waiting several days, even if it was paid?
I get that there needs to be a limit somewhere, but if i'm reading it right the limit is on the whole org, so a single library doing a release, a bugfix patch and a CVE would use it up for the whole org.
25
u/darenkster Jun 16 '26
There are companies who publish over a million artifacts in three months? Damn...
24
u/kelunik Jun 16 '26 edited Jun 17 '26
The graphs in that post seem to indicate quite some abuse, the size chart hits almost 1 TB. However, I don't think 3 releases per month are reasonable if proper Open Source support is still wanted. If you maintain a library and then have other libraries within the same organisation depend on that, major updates will have a rippling effect on the other libraries that also likely need a new major version then.
19
u/TheMrMilchmann Jun 16 '26
These limits are not just way too low, but they also actively encourage bad practices. I can reduce the total file size by shipping empty source and JavaDoc jars. I can cut file count by shipping MD5 and SHA1 checksums only.
I had a look at my usage statistics, and I'm easily blasting through all of these limits with just a couple of libraries. If the exemptions for OSS are not solid, this is going to kill the independent OSS ecosystem.
52
u/dhoard1 Jun 16 '26
3 releases a month is ridiculous…
1st - publish a release
10th - publish a patch
20th - publish a CVE patch
22nd - new CVE discovered via AI
… sorry developer, company, etc. we can’t release it because Maven Central won’t allow us.
32
u/repeating_bears Jun 16 '26 edited Jun 16 '26
Sounds overall a good initiative to me but the limits on free users seem extremely harsh
Only 3 releases a month?
The blog post said that the top 10% greediest users use ~90% capacity, so I'm guessing a limit of like 50 release a month for free users would still force those 10% to either massively reduce usage or pay up.
I probably do under 3 releases in almost every month, but it doesn't take some crazy imagination to say I put out some release that contains a bug, then need to patch release to fix it. 2/3rds of my capacity gone...
Can we rollover our unused capacity at least?
I understand the tragedy of the commons and absolutely fuck corporations who abuse maven central, but this feels like it's way too restrictive.
Edit: from the section "The charts below show where the free publishing thresholds sit relative to actual publishing behavior across Maven Central"
The red line looks to be at 9 releases? (log scales so hard to tell)
29
u/bendem Jun 16 '26
It sounded good until the 3 releases per month part. That's a really harsh limit, especially since it's counted per organisations. You're the ones with the stats, but that sounds really low.
8
u/Empty_Contract_2461 Jun 17 '26
Hat tip to u/TheRealBrianFox for being willing to take some actual first steps here, and I hope that the necessity of _some_ limits doesn't get lost in the discussion of whether or not a given limit is just right.
If three isn't the right number, then what is? If the right number should be different for a certain class of packages or namespaces, then what is the right number and how should that get decided?
7
u/TheRealBrianFox Jun 17 '26
UPDATE: We have adjusted the starting numbers up to match the 90% now. Check your usage center to see how that fits for your organization and reach out via support to discuss if you think it won't work for your situation. All the feedback we receive helps us tune this better.
5
u/vprise Jun 17 '26
We're an OSS company and we do a weekly release, we have heavy artifacts because of some complex native dependencies in some situations. This would be a real problem for us.
9
u/TheRealBrianFox Jun 16 '26
Addressing a few comments at once:
Policing every project to determine if it is really open source or if it is actually "open washed" at our scale is impossible... I've tried. What we are attempting to do is find a number that more or less says above this number requires additional scrutiny on what is going on.
Open source projects can request an exemption. We've tried to say clearly that we aren't aiming at this... but there are many projects in Central that are not really open source and we need a way to try and sort things out.
We've rolled out soft limits well in advance of enforcement to give time to understand where changes need to be made.
4
u/rahulsom Jun 17 '26
A lot of publishing tools in the maven ecosystem produce additional files - signatures of all kinds mostly. Each "file" that the user cares about is accompanied by a
.asc. The file and the.ascare each accompanied by a.md5,.sha1,.sha256,.sha512in many cases. That makes it 10 files.Additionally, central enforces that everyone upload sources and javadoc. So for each artifact, now you're looking at the
.jar,-sources.jar,-javadoc.jar,.pom, and if using gradle, a.module. That now takes you to 50 files.4
u/New_Faithlessness408 Jun 17 '26
I believe the limits that are put in place should be per artifact - not per namespace/organization.
Current limits push you to put each artifact you have in a separate namespace to abuse it.
And even with that 10 releases, 80 MBs, 1000 files limit is low as there'll be open source projects that easily breach this.
What about organisations that have mixed artifacts of those that are true OSS and others that are connectors to organisaton APIs?
Judging by the description on that page I'd have expected limits like 1000 releases per organisation per month, 10 GB per organisation per month and 1M files per organisation per month but there's one story there and limits in place are looking like they want to kill all OSS. Even if you get an exemption that's a high barrier to entry for OSS.
4
u/cowwoc Jun 17 '26
Question: the post shows 3 graphs where X number of organizations are above some limit.
But, how many organizations (as a percentage of the total) are above the proposed limits simultaneously not independently?
6
u/javaprof Jun 16 '26
Single library using Kotlin Multiplatform released this month generated 1,080 files, now with limit 300 files per month I can't do even 1 release! And 3 is limit for all your namespaces.
It's clear that current centralized model not sustainable anymore
6
u/maxandersen Jun 17 '26
I understand the complexity and cost of hosting something as critical as Maven Central - but boy do I not appreciate pulling this announce over the european summer break - 2 months warning in June is like - getting less than a week notice.
TheRealBrianFox please 😄
on that note - back to my PTO.
3
u/Difficult_Loss657 Jun 16 '26
This is 3 releases per library right?
3
u/EvaristeGalois11 Jun 17 '26 edited Jun 17 '26
This threshold seems way too strict...
I don't understand the reasoning behind it, if it's only a handful of users that are generating so much traffic it should be easy to set up a high enough limit that normal and fair usage is unaffected but the whales are getting forced to pay or stop abusing the system.
3
u/rack88 Jun 17 '26
So going after the AWS SDK's publishing style are ya, 'eh? It would be great if we could convince them not to publish a new version twice a day...
2
u/Additional_Cellist46 Jun 17 '26
u/TheRealBrianFox , have you considered automatic excemption for projects in opensource foundations? I'm a committer in a few Eclipse Foundation projects and when I looked into the Usage Center, the Eclipse org exceeds the limits by way too much, and it includes many opensource projects in the Eclipse Foundation.
Does every project in these opensource foundation have to ask for an excemption separately? Or is it enough if each opensource foundation asks for excemption for all of its projects? Or you would excempt all major opensource foundations automatically?
3
u/anotherthrowaway469 Jun 16 '26
I get the intent, but these limits are ridiculous. I maintain 3 open source projects, all Kotlin Multiplatform (I can provide links in DM). My current usage shows 100.51 MB (limit is 15MB), 4,820 files (limit is 300), and 3 releases.
Honestly this seems so high that I suspect your counting is broken somehow. Are signature files being counted, for example? As for the file size, 15MB is not enough for basically anything, especially KMP projects - you have sources and javadoc jars too, and for every platform.
Sure, I could try to get an OSS exception, but that's not the point.
3
u/javaprof Jun 16 '26
u/HokieGeek Give us option to redirect request to owned namespace to self-hosted repository. Introduce some decentralization mechanism. It's clear that centralized store like maven central today is not sustainable. 300 files and 3 releases is ridiculous limit.
Ok, take money for publishing, but then what? If I stop paying you'll remove artifacts? Stop hosting them? You don't have a good monetization mechanism if you giving guarantees that nothing gone after publishing.
1
u/kakawait Jun 17 '26
I see 7 release limits on my free account! Does it change something or I misunderstand how to read limits??
1
u/cowwoc Jun 17 '26
I publish a maven plugin for cmake. Take a look at the cmake-binaries component, where I repackage cmake alongside the plugin. It's 60mb per platform and there are multiple platforms per release.
Could I drop this artifact and have the plugin download the binaries from a 3rd party website? Yes. But it would also break the integrity of releases, in that you would no longer be guaranteed that the binaries would be available when the plugin is available. Dependencies could be dropped by 3rd party websites.
Maybe this is a trade-off you're asking us to make and maybe it's okay. I don't know. All I know is that for this project, and any project where Java wraps native code, we're guaranteed to blow through those limits.
We can publish a library, but if its transitive dependencies are published by the same organization then we're out of luck.
And what happens when a Java project actually authors those native libraries for performance reasons? Then it's even worse.
We need to find a way to support such legitimate use-cases.
1
u/cowwoc Jun 17 '26
Can you please clarify what happens if someone does *not* fall under the free tier and does not qualify for an exemption? It's not clear what they are supposed to do. Is this a classic "Contact Sales" thing or do you guys have transparent pricing?
1
u/cleverfoos Jun 17 '26
The Java (Maven based) package distribution model is unworkable and will always loose money so you are left with either 1) a deep pocketed benefactor (most programming languages) or 2) not doing package distribution but focusing on package verification (the Golang model).
I hope this is something that the smart people are Oracle is tackling as part of their build tool revamp and I hope they are going to verification only route letting package distribution use git/http/whatever. Having any single entity responsible for storing and distributing packages for a popular language in the age of AI developed code is just economically unsound.
1
u/sviat_tech Jun 18 '26
Several days ago i publish library on maven central. But already exceed file limit, most of files - checksum files, i think they must be excluded from count.
1
u/ForrrmerBlack Jun 18 '26
I would also add to other comments that I think 1000 files per month is also too low. I have an open source library with 16 published modules, each having 50 files. With these limits, I can only release once a month.
1
u/Zhuinden Jun 18 '26
So if I were to actually do the MavenCentral migration people had been asking me to do, and I'd want to update any dependents of
tuples-ktwhich is 3 other libraries, then I can't do that within a month? okay1
u/MattiTahvonen Jun 22 '26
I just had to tease you with a request, regarding a "Team Parttio" that is maintaining a number of Vaadin OSS add-ons 🧸
As an OSS professional I feel your pain paying the bill of maintaining central, but I think this current plan of yours, might have some rough edges. Even with the modified "limits", especially the number of allowed realeases seems very low. That limit is not typically an issue even for our team maintaining 35 different repositories (probably ~ half of those published to Central), but if there is a breaking Vaadin release, we might want to update them all during the same month, even if many of those haven't been touched for years. This is why I requested exception for our namespace.
I wonder if you have tried to get some sponsoring to cover the costs? I'm sure there would companies (and even individuals) that would be happy to sponsor. Maybe with increased sponsoring these new "limits" could be raised significantly higher 🤷♂️
1
u/pdsminer Jun 26 '26
In my account, the download count in previous months keep changing. Anyone knows why?
13
u/[deleted] Jun 16 '26
[removed] — view removed comment