-
Notifications
You must be signed in to change notification settings - Fork 49
Description
With recent changes to Maven Central publishing we lost the ability to publish snapshot artifacts from CI nightly builds to Central Staging repo.
Our updated releases publishing process uses Central Publisher API through cURL instead of Maven. But it seems that it does not support publishing snapshots.
Sonatype's snapshots guide only describes the usage of central-publishing-maven-plugin
to publish snapshots. That plugin is designed to publish Java apps that are built by Maven. I've experimented with its setup for external binaries upload (like ours - built with CMake) and got uploads running (maven_central_deployment_example), but got stuck on GPG signatures upload.
Thus the current understanding that this is possible with current JDBC builds, but requires untrivial setup (that is completely different from releases upload) - the easiest way here may be to implement a custom Maven plugin (central-publishing-maven-plugin
is not open-source though, so cannot be based upon).
Currently nightly binaries are available for direct download from GitHub actions runs - thus can be easily used for local testing (by placing them to ~/.m2/repository
dir) but cannot be used from projects that rely on Central for CI builds.