-
Notifications
You must be signed in to change notification settings - Fork 267
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
Server configuration httpHeaders ignored #391
Comments
Hey all, just a quick update: After several hours of debugging what might be the issues I found out that Maven 3.x uses another system for dependency resolution - Aether. The implementation replaces |
…m - added a new configuration property to control which version resolution option should be used(useRepositorySystem)
Any news on this? I also stumbled upon this, which cost me about an hour of debugging (because even with -X there is no indication as to why the metadata cannot be found) Are there reasons not to apply @eroznik's fix? |
I hope this will come in a release soon because we have the same metadata problem, and insufficient debug logging makes it hard to find the reason why updating fails. |
We have the same issue. As a work-around we use this script in our GitLab yml:
|
See: https://gitlab.com/gitlab-org/gitlab/-/issues/277385 for supporting auth basic for gitlab. |
I see this project is still active, but this issue has been auto-closed apparently. Does this mean that there is no hope of the fix being merged? |
Hopefully we get a response from one of the maintainers, at least a suggestion on what to change within the PR so this gets merged. It seems that Gitlab won't be fixing this anytime soon.. |
Hello,
I am using version 2.7 to manage dependencies(properties + parent) using the following commands:
The project I am using this on has configured a custom repository(Gitlab) which requires a custom header for authorization.
The project pom.xml has a repository(lets say its id is "custom-repo"), than i have a custom server entry in my .m2/settings.xml configured to add a custom HTTP header:
<server> <id>custom-repo</id> <configuration> <httpHeaders> <property> <name>Private-Token</name> <value>super-secret-token</value> </property> </httpHeaders> </configuration> </server>
I can confirm this setup works when pulling new dependencies, I am encountering only issues when using the versions plugin.
The behavior of the underlying HTTP client was confirmed when i enabled Maven HTTP logging. When Maven pulls new dependencies(not available locally) it adds the custom authorization token to the outgoing requests, when versions plugin checks for new versions - the header isn't added to the request so Gitlab won't accept the request.
Best regards
Etien
The text was updated successfully, but these errors were encountered: