Skip to content

Commit fa66e79

Browse files
committed
fix: change sonatype repo url
As of February 2021, all new projects began being provisioned on https://s01.oss.sonatype.org/. If your project is not provisioned on https://s01.oss.sonatype.org/, you will want to login to the legacy host https://oss.sonatype.org/. https://central.sonatype.org/pages/apache-maven.html
1 parent 5722a6e commit fa66e79

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pom.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@
6060
<id>ossrh-snapshots</id>
6161
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
6262
</repository>
63+
<repository>
64+
<id>ossrh-snapshots-2</id>
65+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
66+
</repository>
6367
</repositories>
6468

6569
<properties>
@@ -325,7 +329,7 @@
325329
</executions>
326330
<configuration>
327331
<serverId>ossrh</serverId>
328-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
332+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
329333
<autoReleaseAfterClose>true</autoReleaseAfterClose>
330334
</configuration>
331335
</plugin>
@@ -415,7 +419,7 @@
415419
<distributionManagement>
416420
<snapshotRepository>
417421
<id>ossrh</id>
418-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
422+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
419423
</snapshotRepository>
420424
</distributionManagement>
421425
</profile>
@@ -453,7 +457,7 @@
453457
<distributionManagement>
454458
<repository>
455459
<id>ossrh</id>
456-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
460+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
457461
</repository>
458462
</distributionManagement>
459463
</profile>

0 commit comments

Comments
 (0)