How to Publish JARs to Maven Central

Why Maven Central? If you maintain an open-source Java library, Maven Central is the standard distribution channel. It is the default repository for Gradle and Maven, meaning any developer can add your library as a dependency without configuring custom repositories. Publishing there gives your project discoverability, trust, and seamless integration into existing build pipelines. However, the publishing process has changed significantly in recent years. If you have published to Maven Central before using the legacy OSSRH (OSS Repository Hosting) workflow, much of what you know no longer applies. This article covers the current process using the new Central Portal, including what changed and why your old setup may have stopped working. ...

March 13, 2026 · 9 min · Alisher Alimov