Skip to content

Commit 988c457

Browse files
committed
Switch from Sonatype OSSRH to Sonatype Central
1 parent 97d78ff commit 988c457

2 files changed

Lines changed: 15 additions & 10 deletions

File tree

.maven-settings.xml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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>

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ under the License.
2525
<parent>
2626
<groupId>io.wcm.devops</groupId>
2727
<artifactId>io.wcm.devops.parent_toplevel</artifactId>
28-
<version>2.0.0</version>
28+
<version>2.0.1-SNAPSHOT</version>
2929
<relativePath />
3030
</parent>
3131

@@ -90,10 +90,10 @@ under the License.
9090
<mavenPluginToolsVersion>3.6.0</mavenPluginToolsVersion>
9191

9292
<!-- repository settings -->
93-
<distribution.snapshotRepositoryId>ossrh</distribution.snapshotRepositoryId>
94-
<distribution.snapshotRepositoryUrl>https://oss.sonatype.org/content/repositories/snapshots</distribution.snapshotRepositoryUrl>
95-
<distribution.releaseRepositoryId>ossrh</distribution.releaseRepositoryId>
96-
<distribution.releaseRepositoryUrl>https://oss.sonatype.org/service/local/staging/deploy/maven2/</distribution.releaseRepositoryUrl>
93+
<distribution.snapshotRepositoryId>sonatype-central-snapshots</distribution.snapshotRepositoryId>
94+
<distribution.snapshotRepositoryUrl>https://central.sonatype.com/repository/maven-snapshots</distribution.snapshotRepositoryUrl>
95+
<distribution.releaseRepositoryId>sonatype-central</distribution.releaseRepositoryId>
96+
<distribution.releaseRepositoryUrl>https://central.sonatype.com</distribution.releaseRepositoryUrl>
9797

9898
<!-- Skip integration tests by default -->
9999
<skipITs>true</skipITs>

0 commit comments

Comments
 (0)