Skip to content

Fixed Maven Central publishing timeout and retry failures - #57

Merged
oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/release-idempotency
Apr 17, 2026
Merged

oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/release-idempotency

Conversation

@oleg68

@oleg68 oleg68 commented Apr 17, 2026

Copy link
Copy Markdown
Collaborator

Split build step into compile+test (mvn package) and deploy (mvn deploy -P release) phases. Deploy step is idempotent: reuses existing Sonatype deployment if one already exists for the version. Release job now polls until PUBLISHED instead of blocking in the build job. GitHub Release publication is also idempotent (checks isDraft before editing).

Changed central-publishing-maven-plugin to autoPublish=false (removed waitUntil=published) so upload returns immediately with a deployment ID.

Split build step into compile+test (mvn package) and deploy (mvn deploy
-P release) phases. Deploy step is idempotent: reuses existing Sonatype
deployment if one already exists for the version. Release job now polls
until PUBLISHED instead of blocking in the build job. GitHub Release
publication is also idempotent (checks isDraft before editing).

Changed central-publishing-maven-plugin to autoPublish=false (removed
waitUntil=published) so upload returns immediately with a deployment ID.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@oleg68
oleg68 merged commit 2e7dff7 into nbplugins:main Apr 17, 2026
3 checks passed
@oleg68
oleg68 deleted the bugfix/release-idempotency branch April 17, 2026 07:19
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