401 Unhautorized when creating package with maven #25385
-
Hi, when I try to create a maven package from ci. I have this in the pom.xml
but then in CI when I try to do this:
I got the error. can you help me please? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I succeded in uploading the first 1.0.0-SNAPSHOT the first time, but now it don’t want to get other packages. No care what version I use. Is this a bug? |
Beta Was this translation helpful? Give feedback.
-
this guide does not work neither https://help.github.com/en/actions/language-and-framework-guides/publishing-java-packages-with-maven |
Beta Was this translation helpful? Give feedback.
-
I’m sorry it was my fault, I forgot to import java before the mvn deploy 😕 |
Beta Was this translation helpful? Give feedback.
-
I had this problem too and it took me a while to figure out what “import java” means. This solved it. Add a setup-java step to the job before the step that invokes maven:
|
Beta Was this translation helpful? Give feedback.
I’m sorry it was my fault, I forgot to import java before the mvn deploy 😕