Skip to content

Switch to Sonatype central plugin and disable example publishing#16

Merged
mercyblitz merged 4 commits into
mainfrom
release
Mar 17, 2026
Merged

Switch to Sonatype central plugin and disable example publishing#16
mercyblitz merged 4 commits into
mainfrom
release

Conversation

@mercyblitz
Copy link
Copy Markdown
Contributor

This pull request updates the Maven plugin configuration in the microsphere-logging-examples/pom.xml file to use a more modern publishing plugin and adjusts the configuration key accordingly.

Build and publishing configuration:

  • Replaced the maven-deploy-plugin with the central-publishing-maven-plugin from org.sonatype.central and updated the configuration to use skipPublishing instead of skip. (microsphere-logging-examples/pom.xml)

Replace the old maven-deploy-plugin entry with org.sonatype.central:central-publishing-maven-plugin and update its config from <skip>true</skip> to <skipPublishing>false</skipPublishing>. This switches the build to use Sonatype's central publishing plugin and enables publishing to Maven Central instead of skipping deployment.
Set <skipPublishing>true</skipPublishing> in microsphere-logging-examples/pom.xml for the central-publishing-maven-plugin to prevent the examples module from being published and avoid accidental release of example artifacts.
Switch to Sonatype central plugin and disable publishing for examples
@mercyblitz mercyblitz merged commit b204969 into main Mar 17, 2026
1 of 2 checks passed
@augmentcode
Copy link
Copy Markdown

augmentcode Bot commented Mar 17, 2026

🤖 Augment PR Summary

Summary: Updates the examples module’s Maven publishing configuration to use Sonatype’s central-publishing-maven-plugin.
Why: Aligns publishing with the newer Sonatype Central mechanism while ensuring the examples artifact can be skipped from publication via skipPublishing.

🤖 Was this summary useful? React with 👍 or 👎

Copy link
Copy Markdown

@augmentcode augmentcode Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 1 suggestion posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

<artifactId>central-publishing-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
<skipPublishing>true</skipPublishing>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the previous maven-deploy-plugin <skip>true</skip> was removed, mvn deploy may start deploying this module unless central-publishing-maven-plugin is actually active (typically via parent pluginManagement and/or <extensions>true</extensions>). Could you double-check that the examples module is still excluded from publishing in CI/release builds?

Severity: medium

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant