Skip to content

Commit 495bb5f

Browse files
committed
change nexus server
1 parent a78b161 commit 495bb5f

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-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

+8-7
Original file line numberDiff line numberDiff line change
@@ -452,17 +452,18 @@
452452
<passphrase>${env.GPG_PASSPHRASE}</passphrase>
453453
</properties>
454454
<build>
455+
<plugins>
455456
<plugins>
456457
<plugin>
457-
<groupId>org.sonatype.central</groupId>
458-
<artifactId>central-publishing-maven-plugin</artifactId>
459-
<version>0.3.0</version>
458+
<groupId>org.sonatype.plugins</groupId>
459+
<artifactId>nexus-staging-maven-plugin</artifactId>
460+
<version>1.6.7</version>
460461
<extensions>true</extensions>
461462
<configuration>
462-
<publishingServerId>central</publishingServerId>
463-
<tokenAuth>true</tokenAuth>
464-
<autoPublish>true</autoPublish>
465-
<waitUntil>published</waitUntil>
463+
<serverId>ossrh</serverId>
464+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
465+
<!-- we need to release from staging to avoid errors and ensure double check -->
466+
<autoReleaseAfterClose>false</autoReleaseAfterClose>
466467
</configuration>
467468
</plugin>
468469
<plugin>

0 commit comments

Comments
 (0)