This is a task to do some cleanup and upgrade build configuration related to Maven Central publishing.
Right now in Occurrent Maven configuration I can see traces of 3 different plugins related to this:
org.sonatype.plugins:nexus-staging-maven-plugin (src)
org.sonatype.central:central-publishing-maven-plugin (src, docs)
- and built-in
org.apache.maven.plugins:maven-deploy-plugin, configured with <distributionManagement> section (src, docs)
In summer 2025 OSSRH service has been shut down, and I guess nexus-staging-maven-plugin no longer makes sense.
The Maven Central instructions for publishing with Maven recommends using central-publishing-maven-plugin. This one should get upgraded and properly configured. Not sure, what will be the role of maven-deploy-plugin in this configuration, but at least the whole deployment process with central-publishing-maven-plugin starts with mvn deploy default command.
This is a task to do some cleanup and upgrade build configuration related to Maven Central publishing.
Right now in Occurrent Maven configuration I can see traces of 3 different plugins related to this:
org.sonatype.plugins:nexus-staging-maven-plugin(src)org.sonatype.central:central-publishing-maven-plugin(src, docs)org.apache.maven.plugins:maven-deploy-plugin, configured with<distributionManagement>section (src, docs)In summer 2025 OSSRH service has been shut down, and I guess
nexus-staging-maven-pluginno longer makes sense.The Maven Central instructions for publishing with Maven recommends using
central-publishing-maven-plugin. This one should get upgraded and properly configured. Not sure, what will be the role ofmaven-deploy-pluginin this configuration, but at least the whole deployment process withcentral-publishing-maven-pluginstarts withmvn deploydefault command.