Skip to content
Discussion options

You must be logged in to vote

Hello Frank,

I understand you're encountering a 401 Unauthorized error when attempting to publish your Java Maven library to GitHub Packages. Let's walk through some common causes and solutions to this issue.


🔍 Understanding the Issue

The error message:

Failed to deploy artifacts: Could not transfer artifact ... status code: 401, reason phrase: Unauthorized (401)

indicates that the authentication credentials provided are not being accepted by GitHub Packages during the deployment process.


✅ Steps to Resolve

  1. Verify Personal Access Token (PAT) Permissions

    Ensure that your PAT has the necessary scopes:

    • write:packages
    • read:packages
    • repo (if your repository is private)

    You can check an…

Replies: 2 comments

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question Ask and answer questions about GitHub features and usage
2 participants