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
Maven Failed to deploy artifacts: Could not find artifact "self" in github (https://maven.pkg.github.com/ORG/REPO) #620
Comments
Looking at the
I suppose that's what's failing. But why is this failing? Am I missing something in the workflow? |
Thinking out loud here, this is the servers part of the settings.xml
The password comes from Even tried to set all possible permissions to permissions:
actions: write
checks: write
contents: write
deployments: write
id-token: none
issues: write
packages: write
pages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write That still fails when I try to use |
Hello @serpro69 |
Thanks @HarithaVattikuti , |
Hi @serpro69, publishing the package only requires the GITHUB_TOKEN, no server configuration needed. However, if you're planning to install packages linked to other private repositories, you'll need a PAT (Personal Access Token). For further details, please check the GitHub Packages Documentation. |
Hi @mahabaleshwars . I see, thank you for the comment. I suppose you're referring to this part of the docs:
I guess it makes sense, if I do wish that the docs were a bit more clearer on this. E.g. in Publishing a package docs, it says :
Which is what made me think that this should work, since it explicitly says "no other steps are needed" and doesn't mention the token details. But I suppose documentation updates are beyond the scope of this issue, so I'll close it. Thanks again for providing the details on how this is supposed to work. |
Description:
When trying to deploy maven artifact to github packages,
mvn deploy
fails with an error "Could not find artifact foo.bar:parent-pom:pom:0.0.1 in github"The weird error is that
foo.bar:parent-pom:0.0.1
is the artifact I'm trying to publish in the first place, so why is it trying to download it?Note: this is the first package version. Don't know if this matters. But I can successfully deploy from local using a token with
package:write
permissions, so I think this has something to do with the workflow, rather than the fact that the package doesn't exist.Output from maven:
Task version:
v4
Platform:
Runner type:
Repro steps:
A description with steps to reproduce the issue. If your have a public example or repo to share, please provide the link.
Maven pom distribution management:
Expected behavior:
Package should be published
Actual behavior:
The text was updated successfully, but these errors were encountered: