ci: migrate release publishing to central plugin
## What's the purpose of this PR
Migrate Apollo Java release publishing to Sonatype Central's official Maven plugin flow, and remove the now-obsolete OSSRH compatibility publish orchestration.
## Which issue(s) this PR fixes:
Fixes #N/A (release infrastructure migration)
## Brief changelog
- switch release profile to `org.sonatype.central:central-publishing-maven-plugin`
- enable auto publish and wait until `PUBLISHED`
- simplify `.github/workflows/release.yml` to a single Central publish path
- remove legacy `sonatype-publish.yml` workflow and related helper scripts
- drop obsolete `distributionManagement` endpoints tied to old OSSRH workflow
Follow this checklist to help us incorporate your contribution quickly and easily:
- [x] Read the [Contributing Guide](https://github.com/apolloconfig/apollo/blob/master/CONTRIBUTING.md) before making this pull request.
- [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
- [x] Write necessary unit tests to verify the code.
- [ ] Run `mvn clean test` to make sure this pull request doesn't break anything.
- [ ] Update the [`CHANGES` log](https://github.com/apolloconfig/apollo-java/blob/master/CHANGES.md).
## Validation executed
- `mvn -B -q -DskipTests -Prelease help:evaluate -Dexpression=project.version -DforceStdout`
- `mvn help:describe -Dplugin=org.sonatype.central:central-publishing-maven-plugin:0.10.0 -Ddetail -Dgoal=publish -DskipTests`
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Automatic Maven Central publishing using the central-publishing-maven-plugin with streamlined deployment.
* **Chores**
* Removed legacy Sonatype staging management scripts and workflows.
* Removed manual Sonatype publishing workflow.
* Simplified release configuration by removing explicit repository settings.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
合并状态:未合并 关闭于 2026-02-19 2 条评论