Skip to content

Commit 32505a9

Browse files
committed
build: migrate from nexus-staging-maven-plugin to central-publishing-maven-plugin
https://central.sonatype.org/publish/publish-portal-maven/
1 parent cb473d0 commit 32505a9

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

pom.xml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,9 @@
3939
</issueManagement>
4040

4141
<distributionManagement>
42-
<snapshotRepository>
43-
<id>ossrh</id>
44-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
45-
</snapshotRepository>
4642
<repository>
4743
<id>ossrh</id>
48-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
44+
<name>Sonatype Central Portal Repository</name>
4945
</repository>
5046
<site>
5147
<id>dropwizard-testing-junit4</id>
@@ -55,9 +51,9 @@
5551

5652
<repositories>
5753
<repository>
54+
<name>Central Portal Snapshots</name>
5855
<id>ossrh</id>
59-
<name>Sonatype Nexus Snapshots</name>
60-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
56+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
6157
<releases>
6258
<enabled>false</enabled>
6359
</releases>
@@ -338,22 +334,14 @@
338334
</executions>
339335
</plugin>
340336
<plugin>
341-
<groupId>org.sonatype.plugins</groupId>
342-
<artifactId>nexus-staging-maven-plugin</artifactId>
337+
<groupId>org.sonatype.central</groupId>
338+
<artifactId>central-publishing-maven-plugin</artifactId>
339+
<extensions>true</extensions>
343340
<configuration>
344-
<serverId>ossrh</serverId>
345-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
346-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
341+
<publishingServerId>ossrh</publishingServerId>
342+
<autoPublish>true</autoPublish>
343+
<waitUntil>published</waitUntil>
347344
</configuration>
348-
<executions>
349-
<execution>
350-
<id>nexus-deploy</id>
351-
<phase>deploy</phase>
352-
<goals>
353-
<goal>deploy</goal>
354-
</goals>
355-
</execution>
356-
</executions>
357345
</plugin>
358346
</plugins>
359347
</build>

0 commit comments

Comments
 (0)