Skip to content

Commit 54160d3

Browse files
Switch from OSSRH to Sonatype Central Portal (#236)
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) same as openzipkin/zipkin#3817 Signed-off-by: Adrian Cole <adrian@tetrate.io>
1 parent fc4deb1 commit 54160d3

8 files changed

Lines changed: 21 additions & 38 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ jobs:
5353
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
5454
# SONATYPE_USER=<sonatype account token>
5555
# * deploys snapshots and releases to Sonatype
56-
# * needs access to io.zipkin via OSSRH-16669
57-
# * generate via https://oss.sonatype.org/#profile;User%20Token
56+
# * needs access to io.zipkin namespace
57+
# * generate token at https://central.sonatype.com
5858
# * referenced in .settings.xml
5959
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
6060
# 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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![Gitter chat](http://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/openzipkin/zipkin)
22
[![Build Status](https://github.com/openzipkin/zipkin-gcp/workflows/test/badge.svg)](https://github.com/openzipkin/zipkin-gcp/actions?query=workflow%3Atest)
3-
[![Maven Central](https://img.shields.io/maven-central/v/io.zipkin.gcp/zipkin-module-gcp.svg)](https://search.maven.org/search?q=g:io.zipkin.gcp%20AND%20a:zipkin-module-gcp)
3+
[![Maven Central](https://img.shields.io/maven-central/v/io.zipkin.gcp/zipkin-module-gcp.svg)](https://central.sonatype.com/search?q=zipkin-module-gcp&namespace=io.zipkin.gcp)
44

55
# zipkin-gcp
66
Shared libraries that provide Zipkin integration with the Google Cloud Platform. Requires JRE 17 or later.
@@ -151,10 +151,10 @@ All artifacts publish to the group ID "io.zipkin.gcp". We use a common
151151
release version for all components.
152152

153153
### Library Releases
154-
Releases are at [Sonatype](https://oss.sonatype.org/content/repositories/releases) and [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22io.zipkin.gcp%22)
154+
Releases are at [Maven Central](https://central.sonatype.com/search?q=zipkin-gcp&namespace=io.zipkin.gcp)
155155

156156
### Library Snapshots
157-
Snapshots are uploaded to [Sonatype](https://oss.sonatype.org/content/repositories/snapshots) after
157+
Snapshots are uploaded to [Sonatype](https://central.sonatype.com/repository/maven-snapshots/) after
158158
commits to master.
159159

160160
### Docker Images

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
* Pushes images to Docker registries [`build-bin/docker_push`](build-bin/docker_push)
3030

@@ -38,7 +38,7 @@ look at the notes in [.github/workflows/deploy.yml] and check the [org secrets](
3838

3939
### Troubleshooting invalid credentials
4040

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

build-bin/maven/maven_unjar

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,6 @@ if ! test -f ${artifact_id}.jar && [ ${is_release} = "true" ]; then
6868
echo "*** Resolving ${qualified_jar} from Maven default repositories..."
6969
${mvn_get} || true
7070

71-
# Don't add load to Sonatype releases repository except when central sync is delayed
72-
if ! test -f ${local_repo_path}; then
73-
echo "*** Resolving ${qualified_jar} from Maven Sonatype releases repository..."
74-
${mvn_get} -DremoteRepositories=https://oss.sonatype.org/content/repositories/releases
75-
fi
76-
7771
cp ${local_repo_path} ${artifact_id}.jar
7872
fi
7973

build-bin/mlc_config.json

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

module/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ and exposes configuration options through environment variables.
1919
JRE 17+ is required to run Zipkin server.
2020

2121
Fetch the latest released
22-
[executable jar for Zipkin server](https://search.maven.org/remote_content?g=io.zipkin&a=zipkin-server&v=LATEST&c=exec)
22+
[executable jar for Zipkin server](https://central.sonatype.com/search?q=zipkin-server&namespace=io.zipkin)
2323
and
24-
[module jar for stackdriver storage](https://search.maven.org/remote_content?g=io.zipkin.gcp&a=zipkin-module-gcp&v=LATEST&c=module).
24+
[module jar for stackdriver storage](https://central.sonatype.com/search?q=zipkin-module-gcp&namespace=io.zipkin.gcp).
2525
Run Zipkin server with the StackDriver Storage enabled.
2626

2727
For example:

pom.xml

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,9 @@
2727

2828
<distributionManagement>
2929
<snapshotRepository>
30-
<id>ossrh</id>
31-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
30+
<id>central</id>
31+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
3232
</snapshotRepository>
33-
<repository>
34-
<id>ossrh</id>
35-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
36-
</repository>
3733
</distributionManagement>
3834

3935
<issueManagement>
@@ -130,7 +126,7 @@
130126
<maven-shade-plugin.version>3.6.0</maven-shade-plugin.version>
131127
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
132128
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version>
133-
<nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version>
129+
<central-publishing-maven-plugin.version>0.10.0</central-publishing-maven-plugin.version>
134130
</properties>
135131

136132
<name>Zipkin Google Cloud Platform (Parent)</name>
@@ -289,9 +285,9 @@
289285
</plugin>
290286

291287
<plugin>
292-
<groupId>org.sonatype.plugins</groupId>
293-
<artifactId>nexus-staging-maven-plugin</artifactId>
294-
<version>${nexus-staging-maven-plugin.version}</version>
288+
<groupId>org.sonatype.central</groupId>
289+
<artifactId>central-publishing-maven-plugin</artifactId>
290+
<version>${central-publishing-maven-plugin.version}</version>
295291
</plugin>
296292
</plugins>
297293
</pluginManagement>
@@ -554,17 +550,13 @@
554550
<build>
555551
<plugins>
556552
<plugin>
557-
<groupId>org.sonatype.plugins</groupId>
558-
<artifactId>nexus-staging-maven-plugin</artifactId>
553+
<groupId>org.sonatype.central</groupId>
554+
<artifactId>central-publishing-maven-plugin</artifactId>
559555
<extensions>true</extensions>
560556
<configuration>
561-
<serverId>ossrh</serverId>
562-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
563-
<!-- Zipkin release is about ~100M mostly from the two server distributions. Default
564-
will timeout after 5 minutes, which can trigger fairly easily with this size. -->
565-
<stagingProgressPauseDurationSeconds>20</stagingProgressPauseDurationSeconds>
566-
<stagingProgressTimeoutMinutes>30</stagingProgressTimeoutMinutes>
567-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
557+
<publishingServerId>central</publishingServerId>
558+
<autoPublish>true</autoPublish>
559+
<waitUntil>published</waitUntil>
568560
</configuration>
569561
</plugin>
570562

0 commit comments

Comments
 (0)