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

Publish SNAPSHOTs directly to Maven Central #56

Closed
3 tasks done
ALRubinger opened this issue Dec 13, 2024 · 2 comments
Closed
3 tasks done

Publish SNAPSHOTs directly to Maven Central #56

ALRubinger opened this issue Dec 13, 2024 · 2 comments
Assignees

Comments

@ALRubinger
Copy link
Contributor

ALRubinger commented Dec 13, 2024

  • Strip out publishing to TBD Artifactory
  • Remove the OIDC config for Artifactory in the build workflow
  • Add the profile in the mvn command to use ossrh
@ALRubinger
Copy link
Contributor Author

ALRubinger commented Dec 13, 2024

Hey @finn-block - I'm getting SNAPSHOT deploy errors; know what's going on here?

This run:

Error: Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.7.0:deploy (injected-nexus-deploy) on project example-jvm-maven-impl: Failed to deploy artifacts: Could not transfer artifact xyz.block:example-jvm-maven-impl:jar.asc:0.0.0-20241213.043354-1 from/to ossrh-snapshots (https://s01.oss.sonatype.org/content/repositories/snapshots): status code: 401, reason phrase: Content access is protected by token (401) -> [Help 1]

You can see all changes in this PR. Token in secrets is correct? I also updated the value in secrets based on what you have in the 1P vault. I haven't regenerated a publishing token in Sonatype.

Assign back to me when done?

@ALRubinger ALRubinger assigned finn-block and unassigned ALRubinger Dec 13, 2024
ALRubinger added a commit that referenced this issue Dec 15, 2024
* Issue #56 - Publish SNAPSHOTs to Maven Central, not TBD Artifactory
* Issue #56 - Update to new org secret name
* publishing: add tailing slash to ossrh-snapshots URL
* Fix the user token in GH Actions org secrets - must be tied to the correct Sonatype server

Align with URLs from https://central.sonatype.org/publish/publish-guide/#accessing-repositories

---------

Co-authored-by: finn <fherzfeld@tbd.email>
@ALRubinger
Copy link
Contributor Author

@github-project-automation github-project-automation bot moved this from ✏ In Progress to ✅ Done in Open Source Program Office Dec 15, 2024
@ALRubinger ALRubinger assigned ALRubinger and unassigned finn-block Dec 15, 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

2 participants