Skip to content

Commit eb55214

Browse files
authored
Switch from OSSRH to Central Publishing Portal (#1481)
Signed-off-by: yhmo <[email protected]>
1 parent 8a5a5b1 commit eb55214

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

pom.xml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,25 @@
6262

6363
<distributionManagement>
6464
<snapshotRepository>
65-
<id>ossrh</id>
66-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
65+
<id>central</id>
66+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
6767
</snapshotRepository>
6868
</distributionManagement>
6969

70+
<repositories>
71+
<repository>
72+
<name>Central Portal Snapshots</name>
73+
<id>central-portal-snapshots</id>
74+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
75+
<releases>
76+
<enabled>false</enabled>
77+
</releases>
78+
<snapshots>
79+
<enabled>true</enabled>
80+
</snapshots>
81+
</repository>
82+
</repositories>
83+
7084
<properties>
7185
<revision>2.6.1</revision>
7286
<maven.compiler.source>8</maven.compiler.source>
@@ -191,14 +205,13 @@
191205
</extensions>
192206
<plugins>
193207
<plugin>
194-
<groupId>org.sonatype.plugins</groupId>
195-
<artifactId>nexus-staging-maven-plugin</artifactId>
196-
<version>1.6.8</version>
208+
<groupId>org.sonatype.central</groupId>
209+
<artifactId>central-publishing-maven-plugin</artifactId>
210+
<version>0.8.0</version>
197211
<extensions>true</extensions>
198212
<configuration>
199-
<serverId>ossrh</serverId>
200-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
201-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
213+
<publishingServerId>central</publishingServerId>
214+
<autoPublish>true</autoPublish>
202215
</configuration>
203216
</plugin>
204217
<plugin>

0 commit comments

Comments
 (0)