Skip to content

Upgrade build configuration for publishing to Maven Central #183

@gavvvr

Description

@gavvvr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions