diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 75ac06f8..b72b9fb0 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -18,7 +18,7 @@ jobs:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
- server-id: ossrh
+ server-id: central
server-username: SONATYPE_USERNAME
server-password: SONATYPE_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
diff --git a/pom.xml b/pom.xml
index d0ad5bea..68d0dd85 100644
--- a/pom.xml
+++ b/pom.xml
@@ -32,14 +32,19 @@
-
- ossrh
- https://s01.oss.sonatype.org/content/repositories/snapshots
-
- ossrh
- https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
+ central
+ Central Repository OSSRH
+ https://central.sonatype.com/
+
+ central
+ Central Repository OSSRG Snapshots
+ https://central.sonatype.com/repository/maven-snapshots/
+
+ true
+
+