Skip to content

Commit 08293a0

Browse files
committed
chore: migrate from Sonatype OSSRH to Central Publishing
Replace nexus-staging-maven-plugin with central-publishing-maven-plugin. Update distributionManagement URLs to central.sonatype.com.
1 parent 9cb265b commit 08293a0

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

pom.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@
5050
</scm>
5151

5252
<distributionManagement>
53-
<snapshotRepository>
54-
<id>oss</id>
55-
<name>Sonatype Nexus Snapshots</name>
56-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
57-
</snapshotRepository>
5853
<repository>
59-
<id>oss</id>
60-
<name>Nexus Release Repository</name>
61-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
54+
<id>central</id>
55+
<name>Central Repository</name>
56+
<url>https://central.sonatype.com/api/v1/publisher</url>
6257
</repository>
58+
<snapshotRepository>
59+
<id>central</id>
60+
<name>Central Repository Snapshots</name>
61+
<url>https://central.sonatype.com/api/v1/publisher</url>
62+
</snapshotRepository>
6363
</distributionManagement>
6464

6565
<issueManagement>
@@ -303,14 +303,14 @@
303303
</executions>
304304
</plugin>
305305
<plugin>
306-
<groupId>org.sonatype.plugins</groupId>
307-
<artifactId>nexus-staging-maven-plugin</artifactId>
308-
<version>1.6.8</version>
306+
<groupId>org.sonatype.central</groupId>
307+
<artifactId>central-publishing-maven-plugin</artifactId>
308+
<version>0.9.0</version>
309309
<extensions>true</extensions>
310310
<configuration>
311-
<serverId>sonatype-nexus-staging</serverId>
312-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
313-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
311+
<publishingServerId>central</publishingServerId>
312+
<autoPublish>true</autoPublish>
313+
<waitUntil>published</waitUntil>
314314
</configuration>
315315
</plugin>
316316
</plugins>

0 commit comments

Comments
 (0)