From fc45bd69e92675c92d4e3b9b2c2c8341dd6c9938 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Thu, 5 Jun 2025 14:19:12 +0200 Subject: [PATCH] Switch from OSSRH to Maven Publisher API. Closes #917 --- pom.xml | 52 ++++++++++++++++++++++++++-------------------------- settings.xml | 6 +++--- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/pom.xml b/pom.xml index 7822b005..6712b7a0 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,7 @@ - + 4.0.0 org.springframework.vault @@ -54,7 +56,7 @@ ${project.build.directory}/doc-resources - + 2016 @@ -676,6 +678,13 @@ 1.7.0 + + org.sonatype.central + central-publishing-maven-plugin + 0.7.0 + true + + @@ -744,13 +753,13 @@ - release + org.apache.maven.plugins maven-release-plugin @@ -802,6 +811,7 @@ + @@ -843,20 +853,9 @@ central - - - sonatype-nexus-snapshots - Sonatype Nexus Snapshots - https://s01.oss.sonatype.org/content/repositories/snapshots/ - - - - sonatype-nexus-staging - Nexus Release Repository - https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ - - - + + true + @@ -888,20 +887,28 @@ + + org.sonatype.central + central-publishing-maven-plugin + + Spring Vault ${project.version} + central + true + + + - - distribute @@ -911,11 +918,7 @@ - - org.apache.maven.plugins @@ -987,14 +990,11 @@ - org.jfrog.buildinfo artifactory-maven-plugin - - diff --git a/settings.xml b/settings.xml index 2700e663..abf0ff7e 100644 --- a/settings.xml +++ b/settings.xml @@ -25,9 +25,9 @@ ${env.ARTIFACTORY_PSW} - sonatype-nexus-staging - ${env.SONATYPE_USR} - ${env.SONATYPE_PSW} + central + ${env.CENTRAL_TOKEN_USERNAME} + ${env.CENTRAL_TOKEN_PASSWORD}