Replies: 17 comments 26 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
We are also facing the same 400 error when we are trying to connect to Maven https://maven.pkg.github.com |
Beta Was this translation helpful? Give feedback.
-
|
Having there same issue as above....
We've personally had to add in this step into our Github release file in order to temporally downgrade the version of Maven being used to |
Beta Was this translation helpful? Give feedback.
-
|
We are also seeing the same issue when trying to build and push maven artifacts to our private repository. |
Beta Was this translation helpful? Give feedback.
-
|
We get the same error message for github packages since ~2 days (for public and private repositories). But we did not change something in our pipeline.
Why is this now a problem? Because the setup-java action upgraded the maven version under the hood? The related issue is here: actions/setup-java#457 |
Beta Was this translation helpful? Give feedback.
-
Yes. I don't know about github packages but we have a custom repository using headers (basic auth). Maven 3.9.0 appears to be completely ignoring server credentials in e.g. this xml EDIT the reason this isn't blowing up like it should in more places is because most open source projects do not use the deploy plugin but the sonatype special deploy plugin. The deploy plugin was updated recently to 3.1.0 but it still fails. EDIT 2: for those that are using the deploy plugin this appears to be work for me: |
Beta Was this translation helpful? Give feedback.
-
|
Just a heads up, while am still unsure what the real problem is (and is there), as @agentgt already noted: Maven 3.9.0 did switch default transport from ancient "Wagon" to more modern native-http (both are Apache HttpClient based, but Wagon is deeply tied to ancient DI container Plexus). In short, what you see here for example "setting custom headers" https://maven.apache.org/guides/mini/guide-http-settings.html (using Plexus XML inside settings.xml server) is Wagon specific only, and hence, does not work with new transport. But, Maven 3.9.0 for sure is not completely ignoring server credentials in Maven 3.9.1 is coming soon with improves like addition of preemptive auth, but again, the new transport follows resolver configuration, and not Wagon specific Plexus XML based configuration, more about it here (1.9.6 resolver is staged, this is staged site for it, vote for release still ongoing): https://maven.apache.org/resolver-archives/resolver-LATEST/configuration.html |
Beta Was this translation helpful? Give feedback.
-
|
There is a success deploy to oss.sonatype Action used for deploy: |
Beta Was this translation helpful? Give feedback.
-
|
Prior to 3.9.0 the default HTTP transport on deploy would send basic auth That is the You can test this by running a proxy HTTP server or whatever and try to deploy to it and see the headers missing. Are you using the default |
Beta Was this translation helpful? Give feedback.
-
|
It is working for me https://github.com/slawekjaranowski/test It must be a something special in your configuration. |
Beta Was this translation helpful? Give feedback.
-
|
Seconding this issue, attempting to do a maven release at 3.9.0 to GitHub Packages fails with |
Beta Was this translation helpful? Give feedback.
-
|
I confirm issue related to upgrade to 3.9.0 fixed by reverting to 3.8.7. Using mvnw instead of mvn fixed the problem as we were able to control mvn version used. |
Beta Was this translation helpful? Give feedback.
-
|
Maven dev here, just to keep you folks in the loop: First, Maven 3.9.1 is about to happen soon (week-ish): https://lists.apache.org/thread/jmgrdgmm2c6rw2xgrsffj59hvm2025h7 with all issues addressed. Second, Maven 3.9.0 seems to confuse GH Package Registry only (due behavior change, stemming from changed transport Wagon -> transport-http). It is confirmed that Maven 3.9.0 does work OK with other Maven Repository Managers (Artifactory, Nexus, etc). Transport really just became HTTP RFC compliant (and some users had issues from it, as they had non-HTTP compliant servers, like challenge was never sent, hence, client never authed either). Something similar happens with GH Package Registry as well, but I have no details, did not see it's source 😉 (all we know it sends HTTP 400 Bad Request out of the blue). But the issue is addressed and tested, and 3.9.1 should work OK with GH registry as well (using transport-http, for this user still has to "move off" from Wagon specific configuration, if there is any used). Maven 3.9.0 w/ Wagon transport does work. We added new page (sorry for being late about it) to explain changes: https://maven.apache.org/guides/mini/guide-resolver-transport.html |
Beta Was this translation helpful? Give feedback.
-
|
I totally consider a preemptive auth with request bodies just braindead. There is expect continue. Any decent server must support that. Yes, there are clients which don't, e.g., py-requests but that is their problem. Wagon will remove all legacy hacks. Time to clean up. |
Beta Was this translation helpful? Give feedback.
-
|
Apache Maven 3.9.1 released: https://maven.apache.org/docs/3.9.1/release-notes.html |
Beta Was this translation helpful? Give feedback.
-
|
Trying to upgrade to maven 3.9.4. I've the same issue when I try to upload a p2 repository to drone package registry. We don't have a settings.xml with server configuration. We define the user and password directly in the url. It seems, it can't upload the checksum but other artifacts are fine. Switching to wagon is working. Do you have any ideas? |
Beta Was this translation helpful? Give feedback.
-
|
Guys I'm sorry! We also have defined the server in server.xml with the CORRECT password. It seems that the new transport is now prefering the user and password from the url. The wagon transport is first using the the user and password from server.xml. A small change in behavior :) Which has confused me. Maybe someone else is happy about this thread. ;) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
After the recent upgrade of runner-images and the upgrade of maven to 3.9.0 our deployments to github packages has stopped working, we are getting a 400 error (bad request) when trying to upload the pom-file.
Beta Was this translation helpful? Give feedback.
All reactions