Skip to content

Migrate projects to Maven Central #569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
francescopellegrini opened this issue May 11, 2025 · 5 comments · Fixed by embeddedkafka/embedded-kafka-schema-registry#537 · May be fixed by #570
Open

Migrate projects to Maven Central #569

francescopellegrini opened this issue May 11, 2025 · 5 comments · Fixed by embeddedkafka/embedded-kafka-schema-registry#537 · May be fixed by #570
Assignees

Comments

@francescopellegrini
Copy link
Collaborator

Hi maintainers,
I've received the following email from The Central Team:

NOTE: If you have already migrated your namespace(s) to Maven Central this email does not apply to you and thank you for your initiative.

Greetings OSSRH Publisher,

As you may have heard, OSSRH is reaching end of life on June 30, 2025. OSSRH users need to migrate their namespaces to the Central Portal as soon as possible.

Instructions for self migration are located here: https://central.sonatype.org/faq/what-is-different-between-central-portal-and-legacy-ossrh/#self-service-migration

To make the transition smoother we will be automatically migrating publishers that have not used oss.sonatype.org or s01.sonatype.org to publish artifacts in some time starting with the oldest and working our way forward. To avoid disruption to your publishing processes we strongly encourage migrating before the June 30, 2025 deadline.

I honestly don't remember if this project and the -schema-registry one were already moved to Maven Central, but I think not.
Could you please double check and eventually migrate them?

@gaeljw
Copy link
Contributor

gaeljw commented May 11, 2025

I can take care of it in the coming days.

@gaeljw
Copy link
Contributor

gaeljw commented May 16, 2025

I tried to do a release for embedded-kafka-schema-registry to make sure it still works and I'm getting some errors. FYI I'll give it a look later but if anyone wants to have a look, feel free.

https://github.com/embeddedkafka/embedded-kafka-schema-registry/actions/runs/15062020473/job/42338777894

2025-05-16 06:21:39.058Z  info [SonatypeCentralClient] Uploading bundle /home/runner/work/embedded-kafka-schema-registry/embedded-kafka-schema-registry/target/sonatype-staging/7.9.1-bundle/bundle.zip to Sonatype Central  - (SonatypeCentralClient.scala:72)
2025-05-16 06:21:39.150Z error [Sonatype] [GENERIC_ERROR] java/net/http/HttpTimeoutException  - (Sonatype.scala:494)
[info] welcome to sbt 1.10.11 (Temurin Java 1.8.0_452)
[info] loading settings for project embedded-kafka-schema-registry-build from plugins.sbt...
[info] loading project definition from /home/runner/work/embedded-kafka-schema-registry/embedded-kafka-schema-registry/project
[info] loading settings for project root from build.sbt...
[info] set current project to embedded-kafka-schema-registry-root (in build file:/home/runner/work/embedded-kafka-schema-registry/embedded-kafka-schema-registry/)
[warn] there's a key that's not used by any other settings/tasks:
[warn]  
[warn] * ThisBuild / parallelExecution
[warn]   +- /home/runner/work/embedded-kafka-schema-registry/embedded-kafka-schema-registry/build.sbt:4
[warn]  
[warn] note: a setting might still be used by a command; to exclude a key from this `lintUnused` check
[warn] either append it to `Global / excludeLintKeys` or call .withRank(KeyRanks.Invisible) on the key
2025-05-16 06:21:46.806Z  warn [SonatypeClient] Disabled http client logging as Java version 1.8.0_452 is no longer supported. Please use Java 17 or later.  - (SonatypeClient.scala:66)
2025-05-16 06:21:46.822Z  info [SonatypeService] sbt-sonatype version: 3.12.2  - (SonatypeService.scala:26)
2025-05-16 06:21:46.822Z  info [SonatypeService] sonatypeRepository  : https://central.sonatype.com/service/local  - (SonatypeService.scala:27)
2025-05-16 06:21:46.822Z  info [SonatypeService] sonatypeProfileName : io.github.embeddedkafka  - (SonatypeService.scala:28)
2025-05-16 06:21:46.823Z  info [SonatypeClient] Reading staging repository profiles...  - (SonatypeClient.scala:94)
2025-05-16 06:21:47.576Z error [Sonatype] 
wvlet.airframe.http.HttpClientException: [404: Not Found] Request failed: <!DOCTYPE html><html lang="en" 

(I haven't yet tried to release embedded-kafka, I guess error would be the same).

@gaeljw
Copy link
Contributor

gaeljw commented May 25, 2025

I confirm that latest releases were made against OSSRH:

[info] 	published embedded-kafka-streams_3 to https://oss.sonatype.org/content/repositories/snapshots/io/github/embeddedkafka/embedded-kafka-streams_3/0.0.0+1-28b8a46e-SNAPSHOT/embedded-kafka-streams_3-0.0.0+1-28b8a46e-SNAPSHOT-javadoc.jar

@francescopellegrini did you take the manual action on Sonatype UI to migrate to Central? I believe you have to do something on the "namespace" and also generate a new user/password token. See also https://central.sonatype.org/faq/what-is-different-between-central-portal-and-legacy-ossrh/. Once this will have been done, we'll be able to try again the changes at the sbt level (#570 and embeddedkafka/embedded-kafka-schema-registry#537).

@gaeljw
Copy link
Contributor

gaeljw commented May 25, 2025

I'm also reaching out to Sonatype support to see if I can get added as a publisher. This would ease future operations.

@gaeljw
Copy link
Contributor

gaeljw commented May 26, 2025

After fixing the Java issue on embedded-kafka-schema-registry, I confirm the error is now a 401. Pretty sure it's the activation of Central Portal + token to be changed that is missing. I had to do the same on a personal project of mine.

[USER_ERROR] Error uploading bundle to Sonatype Central. Status code: 401. Message Received:

I'll do it when/if Sonatype gives me the accesses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants