diff --git a/.github/workflows/maven--package-publish.yml b/.github/workflows/maven--package-publish.yml
index ed2ad1d..ef515b1 100644
--- a/.github/workflows/maven--package-publish.yml
+++ b/.github/workflows/maven--package-publish.yml
@@ -16,7 +16,7 @@ jobs:
with:
java-version: '11'
distribution: 'adopt'
- server-id: ossrh
+ server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
@@ -24,8 +24,8 @@ jobs:
- name: Publish to Maven Central Repository
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy
env:
- MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
- MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
+ MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
+ MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
# run: mvn --batch-mode deploy
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 1917c51..a26af36 100644
--- a/pom.xml
+++ b/pom.xml
@@ -85,26 +85,24 @@
-
+
+ Maven Snapshot Repository
ossrh
https://oss.sonatype.org/content/repositories/snapshots
-
-
-
-
-
-
-
+
+ github
+ https://maven.pkg.github.com/contentstack/contentstack-java
+
+ Maven Release Repository
ossrh
https://oss.sonatype.org/service/local/staging/deploy/maven2/
-
+ -->
@@ -328,19 +326,14 @@
- org.sonatype.plugins
- nexus-staging-maven-plugin
- ${nexus-staging-maven-plugin.version}
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.8.0
true
-
-
-
-
-
- ossrh
- https://oss.sonatype.org/
- true
+ central
+ true
+ published