Gradle Maven deploy failing with 422 Unprocessable Entity #26328
-
Hi,
I have tried the following, all of these resulted in the same error:
This may be related to
Hi, Trying to mvn deploy a multi-module maven project to GHPM (snapshot, not release), but I get the following error on the first file upload: [DEBUG] Using transporter WagonTransporter with priority -1.0 for https://maven.pkg.github.com/ttomsu/spring-cloud-gcp [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://maven.pkg.github.com/ttomsu/spring-cloud-gcp with username=ttomsu, password=*** Downloading from ttomsu-spring-gcp-new: https://maven.pkg.github.com/ttomsu/s… although I haven’t managed to make any use of it for my case and also it seems to be resolved. The last time I verified this was working was September 30. POM of the failing package:
Let me know if I can provide any more info and thanks a lot in advance for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 4 replies
-
Seeing the same issue:
@jcansdale Sorry for hijacking this thread but we are also just recently started seeing issues with our MVN packages which worked before. Both SNAPSHOT and sources have been known to cause issues in the past with GitHub Packages so I suspect this is related: Error: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project […]: Failed to deploy artifacts: Could not transfer artifact […]:jar:2.13.0 from/to github (https://maven.pkg.github.com/[…])… |
Beta Was this translation helpful? Give feedback.
-
gohlinka2:
artifacId should be lowercase to be able to push to github packages |
Beta Was this translation helpful? Give feedback.
-
Going to try it, but not sure if this is the solution as the previous packages were published with this |
Beta Was this translation helpful? Give feedback.
-
Okay, so it went through when I changed the |
Beta Was this translation helpful? Give feedback.
-
It is possible that in your case the problem was fixed not because you changed the artifact-id to lowercase, but simply because you changed the artifact-id! It appears that GitHub has a bug which makes it impossible to publish an artifact if another repository is already publishing an artifact with the same artifact-id. (And then maven screws up on top of that and gives a completely unhelpful error message.) see Maven deploy fails with status 422 unprocessable entity |
Beta Was this translation helpful? Give feedback.
-
I faced the same problem and haven't found a solution yet. |
Beta Was this translation helpful? Give feedback.
-
I want to add that the jar name of the upload, also must match and be lowercase. |
Beta Was this translation helpful? Give feedback.
artifacId should be lowercase to be able to push to github packages