Skip to content

Commit 97d35a5

Browse files
authored
fix: java package deploy failed (#4043)
1 parent 5f20454 commit 97d35a5

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

java/pom.xml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,17 @@
122122
<artifactId>git-commit-id-plugin</artifactId>
123123
</plugin>
124124
<plugin>
125-
<!-- deploy to sonatype -->
126-
<groupId>org.sonatype.plugins</groupId>
127-
<artifactId>nexus-staging-maven-plugin</artifactId>
125+
<groupId>org.sonatype.central</groupId>
126+
<artifactId>central-publishing-maven-plugin</artifactId>
127+
<version>0.8.0</version>
128+
<extensions>true</extensions>
129+
<configuration>
130+
<publishingServerId>ossrh</publishingServerId>
131+
<autoPublish>true</autoPublish>
132+
<!--
133+
<waitUntil>published</waitUntil>
134+
-->
135+
</configuration>
128136
</plugin>
129137
<plugin>
130138
<!-- create jar with source code -->
@@ -480,7 +488,7 @@
480488
<distributionManagement>
481489
<snapshotRepository>
482490
<id>ossrh</id>
483-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
491+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
484492
</snapshotRepository>
485493
<repository>
486494
<id>ossrh</id>

0 commit comments

Comments
 (0)