Skip to content

Commit 23b92ee

Browse files
committed
Switch from Sonatype OSSRH to Sonatype Central
1 parent 2204b3a commit 23b92ee

File tree

2 files changed

+15
-39
lines changed

2 files changed

+15
-39
lines changed

.maven-settings.xml

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#%L
44
wcm.io
55
%%
6-
Copyright (C) 2017 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,21 +43,8 @@
4343
</repository>
4444

4545
<repository>
46-
<id>wcm-io-apache-intermediate-release</id>
47-
<url>https://wcm.io/maven/repositories/apache-intermediate-release</url>
48-
<layout>default</layout>
49-
<releases>
50-
<enabled>true</enabled>
51-
<updatePolicy>never</updatePolicy>
52-
</releases>
53-
<snapshots>
54-
<enabled>false</enabled>
55-
</snapshots>
56-
</repository>
57-
58-
<repository>
59-
<id>oss-snapshots</id>
60-
<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>
6148
<layout>default</layout>
6249
<releases>
6350
<enabled>false</enabled>
@@ -99,21 +86,8 @@
9986
</pluginRepository>
10087

10188
<pluginRepository>
102-
<id>wcm-io-apache-intermediate-release</id>
103-
<url>https://wcm.io/maven/repositories/apache-intermediate-release</url>
104-
<layout>default</layout>
105-
<releases>
106-
<enabled>true</enabled>
107-
<updatePolicy>never</updatePolicy>
108-
</releases>
109-
<snapshots>
110-
<enabled>false</enabled>
111-
</snapshots>
112-
</pluginRepository>
113-
114-
<pluginRepository>
115-
<id>oss-snapshots</id>
116-
<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>
11791
<layout>default</layout>
11892
<releases>
11993
<enabled>false</enabled>
@@ -149,7 +123,12 @@
149123

150124
<servers>
151125
<server>
152-
<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>
153132
<username>${env.SONATYPE_USERNAME}</username>
154133
<password>${env.SONATYPE_PASSWORD}</password>
155134
</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>61</version>
28+
<version>64-SNAPSHOT</version>
2929
<relativePath />
3030
</parent>
3131

@@ -294,15 +294,12 @@
294294
</plugin>
295295
<!-- configure staging process at sonatype.-->
296296
<plugin>
297-
<groupId>org.sonatype.plugins</groupId>
298-
<artifactId>nexus-staging-maven-plugin</artifactId>
297+
<groupId>org.sonatype.central</groupId>
298+
<artifactId>central-publishing-maven-plugin</artifactId>
299299
<inherited>true</inherited>
300300
<extensions>true</extensions>
301301
<configuration>
302-
<serverId>ossrh</serverId>
303-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
304-
<!-- Deployed artifacts should go to staging to be reviewed before publish -->
305-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
302+
<publishingServerId>sonatype-central</publishingServerId>
306303
</configuration>
307304
</plugin>
308305
</plugins>

0 commit comments

Comments
 (0)