Skip to content
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

Sonatype Maven Central authentication issue #1506

Open
HonzaR opened this issue Jun 21, 2024 · 0 comments
Open

Sonatype Maven Central authentication issue #1506

HonzaR opened this issue Jun 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@HonzaR
Copy link
Collaborator

HonzaR commented Jun 21, 2024

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

@HonzaR HonzaR added the bug Something isn't working label Jun 21, 2024
HonzaR added a commit that referenced this issue Jun 21, 2024
- Ultimately, we could merge the snapshot and release workflow files
- Addresses #1506
HonzaR added a commit that referenced this issue Jun 25, 2024
- Ultimately, we could merge the snapshot and release workflow files
- Addresses #1506
HonzaR added a commit that referenced this issue Jun 25, 2024
- Ultimately, we could merge the snapshot and release workflow files
- Addresses #1506
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant