Skip to content

Conversation

@bevzzz
Copy link
Collaborator

@bevzzz bevzzz commented Jul 8, 2025

OSSRH platform was sunset on June 30, 2025 and the recommended way to publish Maven artifacts is now via 'central-publishing-maven-plugin'.

The new Publishing Platform doubles as a staging server and will verify the artifact's checksums and GPG-signatures. Our io.weaviate namespace has been automatically migrated and is available here. The login credentials for Nexus Staging Repository are still valid.

We had to re-generate the client credentials for the Maven deploy plugin, so I updated the settings.xml and pushed a new tarball.

Changes:

  1. We replace nexus-staging-maven-plugin with central-publishing-maven-plugin and drop the explicit configuration (we use the plugin's default configuration).

  2. Default settings for 'mvn deploy' is to NOT auto-publish and out wait until the artifact is 'verified'. We override these in our GitHub CI to autoPublish=true and waitUntil=published. This allows testing deployment changes and running mvn-deploy locally without running a risk of accidentally publishing an artifact.

  3. Move ./decrypt_secret.sh to tools/ and add an encrypt_secret.sh script for convenience

  4. Update create-release.yaml GH workflow

Note: the latest release pipeline failed because of this deprecation.

bevzzz added 4 commits July 8, 2025 15:58
OSSRH platform was sunset on June 30, 2025 and the recommended way to
publish Maven artifacts is now via 'central-publishing-maven-plugin'.
https://central.sonatype.org/pages/ossrh-eol/

The new Publishing Platform doubles as a staging server and will
verify the artifact's checksums and GPG-signatures.

1. We replace nexus-staging-maven-plugin with
   central-publishing-maven-plugin and drop the explicit
   <distributionManagement> configuration (we use the plugin's default
   configuration).
2. Default settings for 'mvn deploy' is to NOT auto-publish and out wait
   until the artifact is 'verified'. We override these in our GitHub CI
   to autoPublish=true and waitUntil=published.
   This allows testing deployment changes and running mvn-deploy locally
   without running a risk of accidentally publishing an artifact.
3. Move ./decrypt_secret.sh to tools/ and add an encrypt_secret.sh
   script for convenience
4. Update create-release.yaml GH workflow
settings.xml have new username and password for Central Maven Repository
Publishing Platform.

Removed <server> configuration that was used to pass the GPG passphrase to
gpg-maven-plugin, as the recommended method is via an env variable.

Added autoPublish and waitUntil properties to control deployment behavior.
@bevzzz bevzzz requested a review from antas-marcin July 8, 2025 21:13
@bevzzz bevzzz self-assigned this Jul 8, 2025
@bevzzz bevzzz requested a review from a team as a code owner July 8, 2025 21:13
Copy link

@orca-security-eu orca-security-eu bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca

@bevzzz bevzzz merged commit 936c0e9 into v6 Jul 9, 2025
2 checks passed
@bevzzz bevzzz deleted the v6-migrate-deployment branch July 9, 2025 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants