From 1c7caca0f570d033deb2a040a41c9597d0ceda8e Mon Sep 17 00:00:00 2001 From: Edoardo Comar Date: Thu, 7 May 2026 15:14:02 +0100 Subject: [PATCH 1/2] chore: update sonatype publishing plugin based on https://ralph.blog.imixs.com/2025/07/07/maven-sonatype-central-repository/ and https://central.sonatype.org/publish/publish-portal-maven/#publishing-by-using-the-maven-plugin and https://central.sonatype.com/artifact/org.sonatype.central/central-publishing-maven-plugin Signed-off-by: Edoardo Comar --- mvn-settings.xml | 2 +- pom.xml | 27 +++++++++++++-------------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/mvn-settings.xml b/mvn-settings.xml index 48357d9..6360b69 100644 --- a/mvn-settings.xml +++ b/mvn-settings.xml @@ -8,7 +8,7 @@ jfrog - ossrh + central ${ossrh_username} ${ossrh_password} diff --git a/pom.xml b/pom.xml index f6ea71c..ff46cc1 100644 --- a/pom.xml +++ b/pom.xml @@ -46,7 +46,7 @@ 3.5.5 0.8.14 3.1.4 - 1.7.0 + 0.10.0 3.2.8 3.4.0 3.6.2 @@ -84,7 +84,7 @@ modules/adminrest - + modules/schemaregistry modules/oauth-client @@ -236,9 +236,9 @@ ${maven-deploy-plugin-version} - org.sonatype.plugins - nexus-staging-maven-plugin - ${nexus-staging-plugin-version} + org.sonatype.central + central-publishing-maven-plugin + ${central-publishing-plugin-version} org.apache.maven.plugins @@ -508,23 +508,22 @@ - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + central + https://central.sonatype.com/api/v1/publisher - org.sonatype.plugins - nexus-staging-maven-plugin + org.sonatype.central + central-publishing-maven-plugin true - ossrh - https://oss.sonatype.org/ - true - true + central + true + published From 8aec4fb618d9555e9347674c709a7234aa85386d Mon Sep 17 00:00:00 2001 From: Edoardo Comar Date: Thu, 7 May 2026 15:34:37 +0100 Subject: [PATCH 2/2] chore: clean up central-publishing-maven-plugin config - Remove distributionManagement repository from central profile: the central-publishing-maven-plugin uploads via its own API (deployment extension), so the repository URL is unused dead config. - Change waitUntil from 'published' to 'validated' to avoid blocking CI for the full Maven Central propagation window (10-30+ minutes). 'validated' still fails the build on bundle validation errors. - Restore unrelated whitespace. Signed-off-by: Edoardo Comar --- pom.xml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/pom.xml b/pom.xml index ff46cc1..c5e3f4d 100644 --- a/pom.xml +++ b/pom.xml @@ -84,7 +84,7 @@ modules/adminrest - + modules/schemaregistry modules/oauth-client @@ -503,17 +503,6 @@ - - - - - - - central - https://central.sonatype.com/api/v1/publisher - - - @@ -523,7 +512,7 @@ central true - published + validated