Skip to content

fix: pin central-publishing-maven-plugin to an existing version#354

Merged
brendanclement merged 1 commit into
mainfrom
fix/central-publishing-plugin-version
Jun 11, 2026
Merged

fix: pin central-publishing-maven-plugin to an existing version#354
brendanclement merged 1 commit into
mainfrom
fix/central-publishing-plugin-version

Conversation

@brendanclement

Copy link
Copy Markdown
Collaborator

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 a central-publishing-maven-plugin.version property pinned to 0.8.0 so the bumpversion matcher can no longer clobber it.

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>
@github-actions github-actions Bot added bug Something isn't working java Java features labels Jun 11, 2026
@brendanclement brendanclement merged commit be99cb6 into main Jun 11, 2026
4 checks passed
@brendanclement brendanclement deleted the fix/central-publishing-plugin-version branch June 11, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working java Java features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maven build fails: central-publishing-maven-plugin:0.8.4 not found (should use an existing version)

2 participants