Skip to content

Commit 261c835

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 056d66f commit 261c835

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
@@ -332,12 +332,12 @@
332332
<distributionManagement>
333333
<snapshotRepository>
334334
<id>ossrh</id>
335-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
335+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
336336
<layout>default</layout>
337337
</snapshotRepository>
338338
<repository>
339339
<id>ossrh</id>
340-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
340+
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url>
341341
<layout>default</layout>
342342
</repository>
343343
</distributionManagement>
@@ -454,13 +454,22 @@
454454
<skip>true</skip>
455455
</configuration>
456456
</plugin>
457+
<plugin>
458+
<groupId>org.sonatype.central</groupId>
459+
<artifactId>central-publishing-maven-plugin</artifactId>
460+
<version>0.8.0</version>
461+
<extensions>true</extensions>
462+
<configuration>
463+
<publishingServerId>central</publishingServerId>
464+
</configuration>
465+
</plugin>
457466
<plugin>
458467
<groupId>org.sonatype.plugins</groupId>
459468
<artifactId>nexus-staging-maven-plugin</artifactId>
460469
<extensions>true</extensions>
461470
<configuration>
462471
<serverId>ossrh</serverId>
463-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
472+
<nexusUrl>https://ossrh-staging-api.central.sonatype.com/</nexusUrl>
464473
<autoReleaseAfterClose>true</autoReleaseAfterClose>
465474
</configuration>
466475
</plugin>

0 commit comments

Comments
 (0)