diff --git a/.github/workflows/mvn_publish.yml b/.github/workflows/mvn_publish.yml
index dc01e68..c60475b 100644
--- a/.github/workflows/mvn_publish.yml
+++ b/.github/workflows/mvn_publish.yml
@@ -27,9 +27,9 @@ jobs:
with:
java-version: '8'
distribution: 'zulu'
- server-id: ossrh
+ server-id: central
server-username: MAVEN_USERNAME
- server-password: MAVEN_PASSWORD
+ server-password: MAVEN_CENTRAL_TOKEN
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
@@ -37,5 +37,5 @@ jobs:
run: mvn clean deploy --batch-mode -DskipTests -P release -B -U -e
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
- MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
+ MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
diff --git a/ingester-all/pom.xml b/ingester-all/pom.xml
index 418f753..59628af 100644
--- a/ingester-all/pom.xml
+++ b/ingester-all/pom.xml
@@ -25,6 +25,7 @@
ingester-all
+ ${project.groupId}:${project.artifactId}
diff --git a/ingester-bulk-protocol/pom.xml b/ingester-bulk-protocol/pom.xml
index 48c3ce5..f7304ae 100644
--- a/ingester-bulk-protocol/pom.xml
+++ b/ingester-bulk-protocol/pom.xml
@@ -25,6 +25,7 @@
ingester-bulk-protocol
+ ${project.groupId}:${project.artifactId}
14.0.2
diff --git a/ingester-common/pom.xml b/ingester-common/pom.xml
index 2ceb4b0..39ad459 100644
--- a/ingester-common/pom.xml
+++ b/ingester-common/pom.xml
@@ -25,6 +25,7 @@
ingester-common
+ ${project.groupId}:${project.artifactId}
4.2.11
diff --git a/ingester-example/pom.xml b/ingester-example/pom.xml
index 628029d..d574f89 100644
--- a/ingester-example/pom.xml
+++ b/ingester-example/pom.xml
@@ -25,6 +25,7 @@
ingester-example
+ ${project.groupId}:${project.artifactId}
diff --git a/ingester-grpc/pom.xml b/ingester-grpc/pom.xml
index 6c51d08..4d3e0d7 100644
--- a/ingester-grpc/pom.xml
+++ b/ingester-grpc/pom.xml
@@ -25,6 +25,7 @@
ingester-grpc
+ ${project.groupId}:${project.artifactId}
1.56.1
diff --git a/ingester-prometheus-metrics/pom.xml b/ingester-prometheus-metrics/pom.xml
index ded5756..2222178 100644
--- a/ingester-prometheus-metrics/pom.xml
+++ b/ingester-prometheus-metrics/pom.xml
@@ -24,6 +24,7 @@
0.15.0
ingester-prometheus-metrics
+ ${project.groupId}:${project.artifactId}
0.16.0
diff --git a/ingester-protocol/pom.xml b/ingester-protocol/pom.xml
index 87c2acb..cabe709 100644
--- a/ingester-protocol/pom.xml
+++ b/ingester-protocol/pom.xml
@@ -25,6 +25,7 @@
ingester-protocol
+ ${project.groupId}:${project.artifactId}
0.9.0
diff --git a/ingester-rpc/pom.xml b/ingester-rpc/pom.xml
index 1cca317..5bef2ed 100644
--- a/ingester-rpc/pom.xml
+++ b/ingester-rpc/pom.xml
@@ -25,6 +25,7 @@
ingester-rpc
+ ${project.groupId}:${project.artifactId}
diff --git a/pom.xml b/pom.xml
index f0eaae3..9dbda7e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -63,13 +63,9 @@
- ossrh
- https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/
+ central
+ https://central.sonatype.com/api/v1/publisher/deployments
-
- ossrh
- https://central.sonatype.com/repository/maven-snapshots/
-
@@ -284,14 +280,13 @@
- org.sonatype.plugins
- nexus-staging-maven-plugin
- ${nexus-staging-maven-plugin.version}
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.4.0
true
- ossrh
- https://ossrh-staging-api.central.sonatype.com/
- true
+ central
+ true