Skip to content

Update the maven snapshot publish endpoint and credential #3806

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zelinh
Copy link
Member

@zelinh zelinh commented Jun 20, 2025

Description

Update the Maven Snapshots publish URL in accordance with the recent Sonatype migration.
https://central.sonatype.org/publish/publish-portal-snapshots/

We have stored the onepassword token in this repo secrets and new credentials for Sonatypes username & password have been stored in onepassword. These credentials will be exported as env variables which used by maven publish.

Related Issues

Part of a campaign issue opensearch-project/opensearch-build#5551

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • New functionality has javadoc added.
  • New functionality has a user manual doc added.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Zelin Hao <zelinhao@amazon.com>
@zelinh
Copy link
Member Author

zelinh commented Jun 20, 2025

Not sure some of logics here in sql repo. Might need some help.

According to Nexus Sonatype, https://central.sonatype.org/publish/publish-portal-snapshots/
For publish and consumption, we would use endpoint https://central.sonatype.com/repository/maven-snapshots/
But for browsing or downloading from script, we may need to use https://central.sonatype.com/service/rest/repository/browse/maven-snapshots

Also for publish-snapshots-and-grammar-files.yml workflow, I see some curl commands trying to push artifacts. We may also need to verify the backward compatibility of the new endpoint or onboard with a new way.

@gaiksaya
Copy link
Member

Hi maintainers,
Please add the correct label to backport to active branches.
Would recommend backporting this PR to 2.19 for 2.19.x artifacts for future releases.

Thanks!

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

Successfully merging this pull request may close these issues.

4 participants