fix: pin central-publishing-maven-plugin to an existing version#354
Merged
Conversation
The plugin version in the deploy-to-ossrh profile was being bumped in
lockstep with the project version: .bumpversion.toml's java/pom.xml rule
searches for `<version>{current_version}</version>` and replaces every
match, and the plugin version once coincided with the project version at
0.8.0. Each release since pushed it to a version Sonatype never published
(0.8.1 through 0.8.5), so the Java publish failed at startup with:
Unresolveable build extension: Plugin
org.sonatype.central:central-publishing-maven-plugin:0.8.5 ...
Could not find artifact ...:central-publishing-maven-plugin:jar:0.8.5
Extract the version into a `central-publishing-maven-plugin.version`
property pinned to 0.8.0 (a real release; only 0.8.0/0.9.0/0.10.0 exist
in the 0.8+ range). The `${...}` reference no longer matches the
bumpversion search pattern, so future releases can no longer clobber it.
Fixes #353
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
xuanyu-z
approved these changes
Jun 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #353. The deploy-to-ossrh plugin version was being bumped in lockstep with the project version by the .bumpversion.toml
<version>rule, pointing it at nonexistent plugin releases (0.8.1–0.8.5). Extracted it to acentral-publishing-maven-plugin.versionproperty pinned to 0.8.0 so the bumpversion matcher can no longer clobber it.