From 0e4fe94310d6945c21e970ee65287e9acb2da239 Mon Sep 17 00:00:00 2001 From: shokakucarrier Date: Tue, 17 Jun 2025 06:03:45 +0800 Subject: [PATCH] Update pom.xml, use central-publishing-maven-plugin to deploy --- .github/workflows/maven-build.yml | 2 +- pom.xml | 25 +++++++++++-------------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 129d211..73ef359 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -60,7 +60,7 @@ jobs: with: servers: | [{ - "id": "sonatype-nexus-snapshots", + "id": "central", "username": "${{ secrets.SONATYPE_BOT_USERNAME }}", "password": "${{ secrets.SONATYPE_BOT_TOKEN }}" }] diff --git a/pom.xml b/pom.xml index 7ae299c..379f26d 100644 --- a/pom.xml +++ b/pom.xml @@ -73,6 +73,7 @@ 3.2.2 3.3.2 3.1.1 + 0.7.0 3.1.1 3.3.1 3.9.1 @@ -408,6 +409,15 @@ org.jacoco jacoco-maven-plugin + + org.sonatype.central + central-publishing-maven-plugin + ${version.plugin.sonatype} + true + + central + + @@ -493,23 +503,10 @@ - - - sonatype-nexus-staging - Release Repository - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - sonatype-nexus-snapshots - Sonatype Nexus - https://oss.sonatype.org/content/repositories/snapshots - - - sonatype-snapshots - https://oss.sonatype.org/content/repositories/snapshots/ + https://central.sonatype.com/repository/maven-snapshots/ false true