Skip to content

Commit 7316a47

Browse files
Switch from OSSRH to Sonatype Central Portal (#282)
Same as openzipkin/zipkin#3817 OSSRH (oss.sonatype.org) was shut down June 30, 2025. This replaces nexus-staging-maven-plugin with central-publishing-maven-plugin and updates all references accordingly. Manual steps already completed: * Generated token at https://central.sonatype.com account settings * Updated SONATYPE_USER/SONATYPE_PASSWORD at https://github.com/organizations/openzipkin/settings/secrets/actions * Enabled SNAPSHOTs at https://central.sonatype.com/publishing/namespaces (io.zipkin) Signed-off-by: Adrian Cole <adrian@tetrate.io>
1 parent a28fe53 commit 7316a47

File tree

7 files changed

+25
-47
lines changed

7 files changed

+25
-47
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ jobs:
4949
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
5050
# SONATYPE_USER=<sonatype account token>
5151
# * deploys snapshots and releases to Sonatype
52-
# * needs access to io.zipkin via OSSRH-16669
53-
# * generate via https://oss.sonatype.org/#profile;User%20Token
52+
# * needs access to io.zipkin namespace
53+
# * generate token at https://central.sonatype.com
5454
# * referenced in .settings.xml
5555
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
5656
# SONATYPE_PASSWORD=<password to sonatype account token>

.settings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<passphrase>${env.GPG_PASSPHRASE}</passphrase>
1616
</server>
1717
<server>
18-
<id>ossrh</id>
18+
<id>central</id>
1919
<username>${env.SONATYPE_USER}</username>
2020
<password>${env.SONATYPE_PASSWORD}</password>
2121
</server>

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Gitter chat](http://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/openzipkin/zipkin)
44
[![Build Status](https://github.com/openzipkin/zipkin-reporter-java/workflows/test/badge.svg)](https://github.com/openzipkin/zipkin/actions?query=workflow%3Atest)
5-
[![Maven Central](https://img.shields.io/maven-central/v/io.zipkin.reporter2/zipkin-reporter.svg)](https://search.maven.org/search?q=g:io.zipkin.reporter2%20AND%20a:zipkin-reporter)
5+
[![Maven Central](https://img.shields.io/maven-central/v/io.zipkin.reporter2/zipkin-reporter.svg)](https://central.sonatype.com/search?q=zipkin-reporter&namespace=io.zipkin.reporter2)
66

77
Zipkin Reporter buffers and sends trace data collected from tracer libraries to a Zipkin compatible backend.
88

@@ -158,11 +158,10 @@ All artifacts publish to the group ID "io.zipkin.zipkin.reporter2". We use a com
158158
release version for all components.
159159

160160
### Library Releases
161-
Releases are uploaded to [Sonatype](https://oss.sonatype.org/content/repositories/releases) which
162-
synchronizes with [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22io.zipkin.zipkin.reporter2%22)
161+
Releases are at [Maven Central](https://central.sonatype.com/search?q=zipkin-reporter&namespace=io.zipkin.reporter2)
163162

164163
### Library Snapshots
165-
Snapshots are uploaded to [Sonatype](https://oss.sonatype.org/content/repositories/snapshots) after
164+
Snapshots are uploaded to [Sonatype](https://central.sonatype.com/repository/maven-snapshots/) after
166165
commits to master.
167166

168167
### Version alignments

RELEASE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This repo uses semantic versions. Please keep this in mind when choosing version
2424
which creates commits, `MAJOR.MINOR.PATCH` tag, and increments the version (maven-release-plugin).
2525

2626
The `MAJOR.MINOR.PATCH` tag triggers [`build-bin/deploy`](build-bin/deploy), which does the following:
27-
* Publishes jars to https://oss.sonatype.org/content/repositories/releases [`build-bin/maven/maven_deploy`](build-bin/maven/maven_deploy)
27+
* Publishes jars to Sonatype [`build-bin/maven/maven_deploy`](build-bin/maven/maven_deploy)
2828
* Later, the same jars synchronize to Maven Central
2929

3030
Notes:
@@ -37,7 +37,7 @@ look at the notes in [.github/workflows/deploy.yml] and check the [org secrets](
3737

3838
### Troubleshooting invalid credentials
3939

40-
If you receive a '401 unauthorized' failure from OSSRH, it is likely
40+
If you receive a '401 unauthorized' failure from Sonatype, it is likely
4141
`SONATYPE_USER` or `SONATYPE_PASSWORD` entries are invalid, or possibly the
4242
user associated with them does not have rights to upload.
4343

bom/pom.xml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,9 @@
6262

6363
<distributionManagement>
6464
<snapshotRepository>
65-
<id>ossrh</id>
66-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
65+
<id>central</id>
66+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
6767
</snapshotRepository>
68-
<repository>
69-
<id>ossrh</id>
70-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
71-
</repository>
7268
</distributionManagement>
7369

7470
<issueManagement>
@@ -142,14 +138,13 @@
142138
<build>
143139
<plugins>
144140
<plugin>
145-
<groupId>org.sonatype.plugins</groupId>
146-
<artifactId>nexus-staging-maven-plugin</artifactId>
147-
<version>1.7.0</version>
141+
<groupId>org.sonatype.central</groupId>
142+
<artifactId>central-publishing-maven-plugin</artifactId>
143+
<version>0.10.0</version>
148144
<extensions>true</extensions>
149145
<configuration>
150-
<serverId>ossrh</serverId>
151-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
152-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
146+
<publishingServerId>central</publishingServerId>
147+
<autoPublish>true</autoPublish>
153148
</configuration>
154149
</plugin>
155150

build-bin/mlc_config.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
22
"ignorePatterns": [
3-
{
4-
"pattern": "https://oss.sonatype.org/content/repositories/snapshots"
5-
}
63
]
74
}

pom.xml

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
<maven-release-plugin.version>3.1.1</maven-release-plugin.version>
9090
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
9191
<maven-surefire-plugin.version>3.5.3</maven-surefire-plugin.version>
92-
<nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version>
92+
<central-publishing-maven-plugin.version>0.10.0</central-publishing-maven-plugin.version>
9393
</properties>
9494

9595
<name>Zipkin Reporter (Parent)</name>
@@ -128,13 +128,9 @@
128128

129129
<distributionManagement>
130130
<snapshotRepository>
131-
<id>ossrh</id>
132-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
131+
<id>central</id>
132+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
133133
</snapshotRepository>
134-
<repository>
135-
<id>ossrh</id>
136-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
137-
</repository>
138134
</distributionManagement>
139135

140136
<issueManagement>
@@ -291,9 +287,9 @@
291287
</plugin>
292288

293289
<plugin>
294-
<groupId>org.sonatype.plugins</groupId>
295-
<artifactId>nexus-staging-maven-plugin</artifactId>
296-
<version>${nexus-staging-maven-plugin.version}</version>
290+
<groupId>org.sonatype.central</groupId>
291+
<artifactId>central-publishing-maven-plugin</artifactId>
292+
<version>${central-publishing-maven-plugin.version}</version>
297293
</plugin>
298294

299295
<plugin>
@@ -578,21 +574,12 @@
578574
<build>
579575
<plugins>
580576
<plugin>
581-
<groupId>org.sonatype.plugins</groupId>
582-
<artifactId>nexus-staging-maven-plugin</artifactId>
577+
<groupId>org.sonatype.central</groupId>
578+
<artifactId>central-publishing-maven-plugin</artifactId>
583579
<extensions>true</extensions>
584580
<configuration>
585-
<serverId>ossrh</serverId>
586-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
587-
<!-- Increase timeouts due to recent load related failures described in OSSRH-76308:
588-
589-
A message body reader for Java class com.sonatype.nexus.staging.api.dto.StagingProfileRepositoryDTO,
590-
and Java type class com.sonatype.nexus.staging.api.dto.StagingProfileRepositoryDTO,
591-
and MIME media type text/html was not found -> [Help 1]
592-
-->
593-
<stagingProgressPauseDurationSeconds>20</stagingProgressPauseDurationSeconds>
594-
<stagingProgressTimeoutMinutes>30</stagingProgressTimeoutMinutes>
595-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
581+
<publishingServerId>central</publishingServerId>
582+
<autoPublish>true</autoPublish>
596583
</configuration>
597584
</plugin>
598585

0 commit comments

Comments
 (0)