Skip to content

Commit 70fc58b

Browse files
committed
Factor out Sonatype repository path to property
This makes it possible to override easily, so that a different Sonatype OSS repository can be used. SciJava projects have migrated to Sonatype's new infrastructure, so the default URL is changed from oss.sonatype.org to s01.oss.sonatype.org.
1 parent d691e2f commit 70fc58b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pom.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@
226226

227227
<!-- NB: Deploy to OSS Sonatype repository by default when releasing. -->
228228
<releaseProfiles>sonatype-oss-release</releaseProfiles>
229+
<sonatype-oss-repository>https://s01.oss.sonatype.org/</sonatype-oss-repository>
229230

230231
<!-- Plugin versions -->
231232

@@ -1546,7 +1547,7 @@
15461547
<extensions>true</extensions>
15471548
<configuration>
15481549
<serverId>sonatype-nexus-releases</serverId>
1549-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
1550+
<nexusUrl>${sonatype-oss-repository}</nexusUrl>
15501551
<autoReleaseAfterClose>true</autoReleaseAfterClose>
15511552
<stagingProgressTimeoutMinutes>15</stagingProgressTimeoutMinutes>
15521553
<stagingProgressPauseDurationSeconds>12</stagingProgressPauseDurationSeconds>
@@ -1585,7 +1586,7 @@
15851586
<repository>
15861587
<id>sonatype-nexus-snapshots</id>
15871588
<name>Sonatype Nexus Snapshots</name>
1588-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
1589+
<url>${sonatype-oss-repository}/content/repositories/snapshots</url>
15891590
<releases>
15901591
<enabled>false</enabled>
15911592
</releases>
@@ -1596,7 +1597,7 @@
15961597
<repository>
15971598
<id>sonatype-nexus-releases</id>
15981599
<name>Sonatype Nexus Releases</name>
1599-
<url>https://oss.sonatype.org/content/repositories/releases</url>
1600+
<url>${sonatype-oss-repository}/content/repositories/releases</url>
16001601
<releases>
16011602
<enabled>true</enabled>
16021603
</releases>
@@ -1610,12 +1611,12 @@
16101611
<snapshotRepository>
16111612
<id>sonatype-nexus-snapshots</id>
16121613
<name>Sonatype Nexus Snapshots</name>
1613-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
1614+
<url>${sonatype-oss-repository}/content/repositories/snapshots/</url>
16141615
</snapshotRepository>
16151616
<repository>
16161617
<id>sonatype-nexus-staging</id>
16171618
<name>Nexus Release Repository</name>
1618-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
1619+
<url>${sonatype-oss-repository}/service/local/staging/deploy/maven2/</url>
16191620
</repository>
16201621
</distributionManagement>
16211622
</profile>

0 commit comments

Comments
 (0)