Title: [deploy] Publishing to Maven Central should be complete at PUBLISHING stage instead of PUBLISHED · Issue #2011 · jreleaser/jreleaser · GitHub
Open Graph Title: [deploy] Publishing to Maven Central should be complete at PUBLISHING stage instead of PUBLISHED · Issue #2011 · jreleaser/jreleaser
X Title: [deploy] Publishing to Maven Central should be complete at PUBLISHING stage instead of PUBLISHED · Issue #2011 · jreleaser/jreleaser
Description: Discussed in #1879 Originally posted by wolpert May 22, 2025 I've migrated from OSSRH to Maven Central and the times it takes to complete a deployment event is quite large. (30 mins). Before on OSSRH it was just a few mins. After reachin...
Open Graph Description: Discussed in #1879 Originally posted by wolpert May 22, 2025 I've migrated from OSSRH to Maven Central and the times it takes to complete a deployment event is quite large. (30 mins). Before on OSS...
X Description: Discussed in #1879 Originally posted by wolpert May 22, 2025 I've migrated from OSSRH to Maven Central and the times it takes to complete a deployment event is quite large. (30 mins). Before on...
Opengraph URL: https://github.com/jreleaser/jreleaser/issues/2011
X: @github
Domain: redirect.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[deploy] Publishing to Maven Central should be complete at PUBLISHING stage instead of PUBLISHED","articleBody":"\n### Discussed in https://github.com/jreleaser/jreleaser/discussions/1879\n\n\u003cdiv type='discussions-op-text'\u003e\n\n\u003csup\u003eOriginally posted by **wolpert** May 22, 2025\u003c/sup\u003e\nI've migrated from OSSRH to Maven Central and the times it takes to complete a deployment event is quite large. (30 mins). Before on OSSRH it was just a few mins. After reaching out to Maven Central, this seems to be due to the meaning behind the states provided by the Maven Central API. To quote them:\r\n\r\n\u003e Historically, publishing through OSSRH involved a quick upload, close, and then release. At that point, the artifacts would be available from that specific OSSRH server, but they would take ~20 minutes to be fully available on the canonical Maven Central instance. With the Portal, that 20 minutes isn't hidden from you anymore. If your build waits until something reaches the PUBLISHING status, that is the equivalent of a released repository in OSSRH. We are unfamiliar with JReleaser's configuration if they have the ability to poll to that status or not.\r\n\r\nMy request is to update the plugin to be complete once the status reaches PUBLISHING to cut down on the wait time. I'd love to get feedback from the group on this idea.\r\n\r\nFor more context, here is a discussion thread I was having: https://github.com/jreleaser/jreleaser/discussions/1876\r\n\r\nTo make the change, my initial impression is just need to change [this code](https://github.com/jreleaser/jreleaser/blob/4eddcb15e0836b4c924fc4842ff0409d1f028799/sdks/jreleaser-mavencentral-java-sdk/src/main/java/org/jreleaser/sdk/mavencentral/MavenCentral.java#L127):\r\n\r\n```\r\npublic void publish(String deploymentId) throws MavenCentralException {\r\n wrap(() -\u003e {\r\n api.publish(deploymentId);\r\n waitForState(deploymentId, State.PUBLISHED, State.FAILED);\r\n });\r\n}\r\n```\r\n\r\nBasically, doing the following would fix it (untested):\r\n```\r\n waitForState(deploymentId, State.PUBLISHED, State.PUBLISHING, State.FAILED);\r\n```\r\n\r\nIf this makes sense, I can submit a PR\u003c/div\u003e","author":{"url":"https://github.com/aalmiray","@type":"Person","name":"aalmiray"},"datePublished":"2025-11-06T20:17:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2011/jreleaser/issues/2011"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5d021945-bdf4-8287-a2c1-f3a38173b2a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B22:11748F:42328:5DBB4:6996E8AB |
| html-safe-nonce | e080c03c1a45222a03b6b3c64588b006e09b49e46c9dedfe91d10d6110ca2399 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjIyOjExNzQ4Rjo0MjMyODo1REJCNDo2OTk2RThBQiIsInZpc2l0b3JfaWQiOiI0MTUxOTQ5NDA1MTIwMjkzMDM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ba91add20bc70dacc36084406354d3d186f07747a9f60da42c91867d1cb65901 |
| hovercard-subject-tag | issue:3597470092 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/jreleaser/jreleaser/2011/issue_layout |
| twitter:image | https://opengraph.githubassets.com/234cb12410b3fc0c6fbfc2bf9f04c4ae20b293b57448d00a2077de4044b22178/jreleaser/jreleaser/issues/2011 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/234cb12410b3fc0c6fbfc2bf9f04c4ae20b293b57448d00a2077de4044b22178/jreleaser/jreleaser/issues/2011 |
| og:image:alt | Discussed in #1879 Originally posted by wolpert May 22, 2025 I've migrated from OSSRH to Maven Central and the times it takes to complete a deployment event is quite large. (30 mins). Before on OSS... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aalmiray |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5513290f8d09a9ed78de519ab8316ed23b2b0ddd5e91d2420df56691d00827e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/jreleaser/jreleaser git https://github.com/jreleaser/jreleaser.git |
| octolytics-dimension-user_id | 81020166 |
| octolytics-dimension-user_login | jreleaser |
| octolytics-dimension-repository_id | 316752534 |
| octolytics-dimension-repository_nwo | jreleaser/jreleaser |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 316752534 |
| octolytics-dimension-repository_network_root_nwo | jreleaser/jreleaser |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 76dcd6bfbb17f4e407097d5743e96cb8ebdafd9c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width