Skip to content

Commit ba09427

Browse files
committed
Switch from Sonatype OSSRH to Sonatype Central
1 parent 3fffd48 commit ba09427

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

.maven-settings.xml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#%L
44
wcm.io
55
%%
6-
Copyright (C) 2015 wcm.io
6+
Copyright (C) 2014 wcm.io
77
%%
88
Licensed under the Apache License, Version 2.0 (the "License");
99
you may not use this file except in compliance with the License.
@@ -43,8 +43,8 @@
4343
</repository>
4444

4545
<repository>
46-
<id>oss-snapshots</id>
47-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
46+
<id>sonatype-central-snapshots</id>
47+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
4848
<layout>default</layout>
4949
<releases>
5050
<enabled>false</enabled>
@@ -86,8 +86,8 @@
8686
</pluginRepository>
8787

8888
<pluginRepository>
89-
<id>oss-snapshots</id>
90-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
89+
<id>sonatype-central-snapshots</id>
90+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
9191
<layout>default</layout>
9292
<releases>
9393
<enabled>false</enabled>
@@ -123,7 +123,12 @@
123123

124124
<servers>
125125
<server>
126-
<id>ossrh</id>
126+
<id>sonatype-central</id>
127+
<username>${env.SONATYPE_USERNAME}</username>
128+
<password>${env.SONATYPE_PASSWORD}</password>
129+
</server>
130+
<server>
131+
<id>sonatype-central-snapshots</id>
127132
<username>${env.SONATYPE_USERNAME}</username>
128133
<password>${env.SONATYPE_PASSWORD}</password>
129134
</server>

parent_toplevel/pom.xml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<parent>
2626
<groupId>io.wcm.maven</groupId>
2727
<artifactId>io.wcm.maven.global-parent</artifactId>
28-
<version>62</version>
28+
<version>64-SNAPSHOT</version>
2929
<relativePath />
3030
</parent>
3131

@@ -398,15 +398,12 @@
398398
</plugin>
399399
<!-- configure staging process at sonatype.-->
400400
<plugin>
401-
<groupId>org.sonatype.plugins</groupId>
402-
<artifactId>nexus-staging-maven-plugin</artifactId>
401+
<groupId>org.sonatype.central</groupId>
402+
<artifactId>central-publishing-maven-plugin</artifactId>
403403
<inherited>true</inherited>
404404
<extensions>true</extensions>
405405
<configuration>
406-
<serverId>ossrh</serverId>
407-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
408-
<!-- Deployed artifacts should go to staging to be reviewed before publish -->
409-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
406+
<publishingServerId>sonatype-central</publishingServerId>
410407
</configuration>
411408
</plugin>
412409
</plugins>

0 commit comments

Comments
 (0)