From c8512850d408b5260ead7e7849b051f1a97ceca5 Mon Sep 17 00:00:00 2001
From: liewstar <2935437378@qq.com>
Date: Fri, 27 Sep 2024 22:47:36 +0800
Subject: [PATCH 1/2] feat: fix pom.xml to fix CI for publishing to
https://central.sonatype.com
---
pom.xml | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
diff --git a/pom.xml b/pom.xml
index 387332b..fb6fa47 100644
--- a/pom.xml
+++ b/pom.xml
@@ -16,7 +16,7 @@
The Apache Software License, Version 2.0
- http://www.apache.org/licenses/LICENSE-2.0.txt
+ https://www.apache.org/licenses/LICENSE-2.0.txt
repo
@@ -40,12 +40,8 @@
ossrh
- https://oss.sonatype.org/content/repositories/snapshots
+ https://central.sonatype.com
-
- ossrh
- https://oss.sonatype.org/service/local/staging/deploy/maven2/
-
@@ -253,15 +249,15 @@
- org.sonatype.plugins
- nexus-staging-maven-plugin
- ${nexus-staging-maven-plugin.version}
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.5.0
true
- ossrh
- https://oss.sonatype.org/
+ ossrh
+ true
- true
+ true
From de57cfa518a34a57f6563c53ef0f860f6430fb39 Mon Sep 17 00:00:00 2001
From: liewstar <2935437378@qq.com>
Date: Fri, 27 Sep 2024 23:42:41 +0800
Subject: [PATCH 2/2] feat: modify environment variables in CI
---
.github/workflows/maven-ci.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/maven-ci.yml b/.github/workflows/maven-ci.yml
index b5f3d78..f1cb863 100644
--- a/.github/workflows/maven-ci.yml
+++ b/.github/workflows/maven-ci.yml
@@ -55,5 +55,5 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
- OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
+ OSSRH_USERNAME: ${{ secrets.OSSRH_JIRA_USERNAME }}
+ OSSRH_PASSWORD: ${{ secrets.OSSRH_JIRA_PASSWORD }}