Skip to content

Commit 6c64d74

Browse files
authored
build: migrate from nexus-staging-maven-plugin to central-publishing-maven-plugin (#291)
https://central.sonatype.org/publish/publish-portal-maven/
1 parent 4a4e95a commit 6c64d74

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>
@@ -348,22 +344,14 @@
348344
</executions>
349345
</plugin>
350346
<plugin>
351-
<groupId>org.sonatype.plugins</groupId>
352-
<artifactId>nexus-staging-maven-plugin</artifactId>
347+
<groupId>org.sonatype.central</groupId>
348+
<artifactId>central-publishing-maven-plugin</artifactId>
349+
<extensions>true</extensions>
353350
<configuration>
354-
<serverId>ossrh</serverId>
355-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
356-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
351+
<publishingServerId>ossrh</publishingServerId>
352+
<autoPublish>true</autoPublish>
353+
<waitUntil>published</waitUntil>
357354
</configuration>
358-
<executions>
359-
<execution>
360-
<id>nexus-deploy</id>
361-
<phase>deploy</phase>
362-
<goals>
363-
<goal>deploy</goal>
364-
</goals>
365-
</execution>
366-
</executions>
367355
</plugin>
368356
</plugins>
369357
</build>

0 commit comments

Comments
 (0)