Skip to content

Commit 2b4d6f1

Browse files
committed
change nexus server
1 parent a78b161 commit 2b4d6f1

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/sonatype-publish.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ jobs:
3737
git-release-bot-name: "bot-release"
3838
git-release-bot-email: "[email protected]"
3939

40-
maven-args: "-DskipTests -DskipITs -Dmaven.deploy.skip=true -PsonatypeDeploy"
40+
maven-args: "-DskipTests -PsonatypeDeploy"
41+
maven-servers: ${{ secrets.MVN_REPO_SERVERS }}
4142
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
4243

4344
gpg-enabled: true

pom.xml

+7-7
Original file line numberDiff line numberDiff line change
@@ -454,15 +454,15 @@
454454
<build>
455455
<plugins>
456456
<plugin>
457-
<groupId>org.sonatype.central</groupId>
458-
<artifactId>central-publishing-maven-plugin</artifactId>
459-
<version>0.3.0</version>
457+
<groupId>org.sonatype.plugins</groupId>
458+
<artifactId>nexus-staging-maven-plugin</artifactId>
459+
<version>1.6.7</version>
460460
<extensions>true</extensions>
461461
<configuration>
462-
<publishingServerId>central</publishingServerId>
463-
<tokenAuth>true</tokenAuth>
464-
<autoPublish>true</autoPublish>
465-
<waitUntil>published</waitUntil>
462+
<serverId>ossrh</serverId>
463+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
464+
<!-- we need to release from staging to avoid errors and ensure double check -->
465+
<autoReleaseAfterClose>false</autoReleaseAfterClose>
466466
</configuration>
467467
</plugin>
468468
<plugin>

0 commit comments

Comments
 (0)