Skip to content

Commit 3f1f349

Browse files
committed
replace deprecated nexusUrl
Signed-off-by: Min Jin <[email protected]> update maven central repo pt2 Signed-off-by: Min Jin <[email protected]>
1 parent 06b9256 commit 3f1f349

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

pom.xml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,12 +356,12 @@
356356
<distributionManagement>
357357
<snapshotRepository>
358358
<id>ossrh</id>
359-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
359+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
360360
<layout>default</layout>
361361
</snapshotRepository>
362362
<repository>
363363
<id>ossrh</id>
364-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
364+
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url>
365365
<layout>default</layout>
366366
</repository>
367367
</distributionManagement>
@@ -473,13 +473,22 @@
473473
<skip>true</skip>
474474
</configuration>
475475
</plugin>
476+
<plugin>
477+
<groupId>org.sonatype.central</groupId>
478+
<artifactId>central-publishing-maven-plugin</artifactId>
479+
<version>0.8.0</version>
480+
<extensions>true</extensions>
481+
<configuration>
482+
<publishingServerId>ossrh</publishingServerId>
483+
</configuration>
484+
</plugin>
476485
<plugin>
477486
<groupId>org.sonatype.plugins</groupId>
478487
<artifactId>nexus-staging-maven-plugin</artifactId>
479488
<extensions>true</extensions>
480489
<configuration>
481490
<serverId>ossrh</serverId>
482-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
491+
<nexusUrl>https://ossrh-staging-api.central.sonatype.com/</nexusUrl>
483492
<autoReleaseAfterClose>true</autoReleaseAfterClose>
484493
</configuration>
485494
</plugin>

0 commit comments

Comments
 (0)