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
leiningen cannot talk to an IPv6-only maven repository #2000
Comments
To investigate this, I just created a temporary maven repo here with only Trying to dig into this, but if anyone succeeds faster... you can test connectivity like this: curl 'http://[2a01:238:421a:4400:58b4:be26:41f:6fde]:81/org/' -g |
Thanks for doing this. When I specify a URL with an IPv6 address directly (with the brackets, like
It looks like the URL is being parsed incorrectly. I don't know if that's fixed in more recent versions of maven wagon. Also in my original problem, I was using a hostname, not an IPv6 address, so the error was different ( |
@martinraison could you maybe post the relevant snippet where you actually configure this repo? Could be an escaping issue of the |
Sorry, there's already an |
Alright, so I tried with this in
And did a simple
And after
Previously I also tried with this in
|
This is what I get: hostname:
With IP:
|
Could be a pomegranate issue, I'm out of ideas atm :/ |
Interesting, you don't seem to have any problem with the hostname (apart from the fact that deps are missing). At least you have the parsing problem with the IP. |
Yeah I'm pretty sure we have some ipv6 parsing problem upstream. Or in lein, but I can't find where it would be. |
For anyone having the same issue, a simple super-kludgy workaround is to use
and specify |
Seem related to https://bugs.openjdk.java.net/browse/JDK-8132520 |
This also is a problem when localhost resolves to |
ping6 - has there been any changes since the bug opening in 2015? |
If anyone has any ipv6 repositories we could check against, that would be nice. It's not unlikely that this has been fixed upstream since this was reported. |
I believe this is fixed (not sure if on stable, but for sure in the latest main branch, commit 6e17ebb). Maven Central now supports IPv6:
Running a slightly modified version of leiningen (that depends on slf4j-simple instead of slf4j-nop):
|
Awesome; thanks! |
I am using a mirror to fetch my project's dependencies. This mirror is IPv6-only, which doesn't seem to be supported by leiningen (I am getting a
No route to host
error). I tried adding-Djava.net.preferIPv6Addresses=true
toJVM_OPTS
andLEIN_JVM_OPTS
, without success.Any ideas? I should add that this setup was working perfectly before, the only change is that the mirror is now IPv6-only.
The text was updated successfully, but these errors were encountered: