Skip to content

Commit aeee7e7

Browse files
chenejacbrianjlowe
authored andcommitted
Migrating from OSSRH to Central Publisher Portal
1 parent 0bda35d commit aeee7e7

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

pom.xml

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,10 @@
183183
</plugin>
184184
<plugin>
185185
<groupId>org.sonatype.plugins</groupId>
186-
<artifactId>nexus-staging-maven-plugin</artifactId>
186+
<artifactId>central-publishing-maven-plugin</artifactId>
187187
<extensions>true</extensions>
188188
<configuration>
189-
<serverId>ossrh</serverId>
190-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
191-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
192-
<keepStagingRepositoryOnCloseRuleFailure>true</keepStagingRepositoryOnCloseRuleFailure>
193-
<stagingProgressTimeoutMinutes>10</stagingProgressTimeoutMinutes>
189+
<publishingServerId>central</publishingServerId>
194190
</configuration>
195191
</plugin>
196192
</plugins>
@@ -398,8 +394,8 @@
398394
</plugin>
399395
<plugin>
400396
<groupId>org.sonatype.plugins</groupId>
401-
<artifactId>nexus-staging-maven-plugin</artifactId>
402-
<version>1.6.7</version>
397+
<artifactId>central-publishing-maven-plugin</artifactId>
398+
<version>0.7.0</version>
403399
</plugin>
404400
</plugins>
405401
</pluginManagement>
@@ -461,20 +457,23 @@
461457
<url>https://vivo-project.github.io/</url>
462458
</site>
463459
<snapshotRepository>
464-
<id>ossrh</id>
465-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
460+
<id>central</id>
461+
<name>Sonatype Central Snapshots</name>
462+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
463+
<releases>
464+
<enabled>false</enabled>
465+
</releases>
466+
<snapshots>
467+
<enabled>true</enabled>
468+
</snapshots>
466469
</snapshotRepository>
467-
<repository>
468-
<id>ossrh</id>
469-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
470-
</repository>
471470
</distributionManagement>
472471

473472
<repositories>
474473
<repository>
475-
<id>sonatype-nexus-snapshots</id>
476-
<name>Sonatype Nexus Snapshots</name>
477-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
474+
<id>central</id>
475+
<name>Sonatype Central Snapshots</name>
476+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
478477
<releases>
479478
<enabled>false</enabled>
480479
</releases>
@@ -483,6 +482,11 @@
483482
</snapshots>
484483
</repository>
485484

485+
<repository>
486+
<id>central-maven</id>
487+
<url>https://repo.maven.apache.org/maven2</url>
488+
</repository>
489+
486490
<repository>
487491
<snapshots>
488492
<enabled>false</enabled>

0 commit comments

Comments
 (0)