Electric-Coin-Company / zcash-android-wallet-sdk

Native Android SDK for Zcash
MIT License
5 stars 9 forks source link

Sonatype Maven Central authentication issue #1506

Closed HonzaR closed 2 months ago

HonzaR commented 3 months ago

Describe the issue

Currently, we're unable to deploy our latest SDK state to the snapshot Maven Central from Sonatype.

We align with all the requirements described here: https://central.sonatype.org/publish/requirements/

Can you reliably reproduce the issue?

The release process fails for both triggered from CI or triggered manually from local machine paths.

To reproduce follow the publishing instruction documentation: https://github.com/Electric-Coin-Company/zcash-android-wallet-sdk/blob/main/docs/PUBLISHING.md

Expected behaviour

Authentication to Sonatype Maven Central will pass and let us release the snapshot version of the SDK

Actual behavior + errors

> Task :backend-lib:publishReleasePublicationToMavenCentralRepository FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':backend-lib:publishReleasePublicationToMavenCentralRepository'.
> Failed to publish publication 'release' to repository 'MavenCentral'
   > Could not PUT 'https://oss.sonatype.org/content/repositories/snapshots/cash/z/ecc/android/zcash-android-backend/2.1.2-SNAPSHOT/maven-metadata.xml'. Received status code 401 from server: Content access is protected by token

Any extra information that might be useful in the debugging process.

Failed CI: https://github.com/Electric-Coin-Company/zcash-android-wallet-sdk/actions/runs/9593438853

This post seems to be related: https://support.sonatype.com/hc/en-us/articles/360049469534-401-Content-access-is-protected-by-token-when-accessing-repositories