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

Fix Release AUTH #16

Closed
ALRubinger opened this issue Nov 14, 2024 · 4 comments
Closed

Fix Release AUTH #16

ALRubinger opened this issue Nov 14, 2024 · 4 comments
Assignees

Comments

@ALRubinger
Copy link
Contributor

Error: [ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy (injected-nexus-deploy) on project java-kotlin-maven-example-parent: Execution injected-nexus-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy failed: Nexus connection problem to URL [https://s01.oss.sonatype.org/ ]: 401 - Unauthorized -> [Help 1]

https://github.com/block/example-java-kotlin-maven-multimodule/actions/runs/11834897715/job/32976552279

@ALRubinger
Copy link
Contributor Author

Well the AUTH seems to work now since 486f42f and using the new publishing method outlined by https://central.sonatype.org/publish/publish-portal-maven/, but now:

[INFO] Deployment 08882ab2-1def-487d-b8b5-77fa193c6b1c failed
[INFO] pkg:maven/xyz.block/java-kotlin-maven-example-api@0.0.1-alpha-4:
[INFO]  - Namespace 'xyz.block' is not allowed

Odd because:

image

I'm emailing Sonatype Support to see what's up.

ALRubinger added a commit that referenced this issue Nov 14, 2024
@ALRubinger
Copy link
Contributor Author

From Sonatype - we're mixing Central and OSSRH accounts and one can't be used for the other even though they both publish to Maven Central. The right documentation is: https://central.sonatype.org/publish/generate-token/

Our account logs in via https://s01.oss.sonatype.org/
Generate token here and use that in GH Actions Secrets.
Document this internally before closing.

@ALRubinger
Copy link
Contributor Author

Hot diggity
image

@ALRubinger
Copy link
Contributor Author

Documented internally

@github-project-automation github-project-automation bot moved this from In Progress to Done in Open Source Program Office Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

No branches or pull requests

1 participant