Hi,

On 31/05/2024 14:41, Nick Couchman wrote:
On Thu, May 30, 2024 at 10:05 PM Willy Manga <[email protected]> wrote:

Hi,

I want to be sure I am not missing anything and it is a network issue on
my side.

I want to build guacamole-client . Here is my environment:
- maven 3.6.3-5 (running on debian 11)
- IPv6-only with a NAT64 gateway in the network.

Question: do I need specific packages in addition to maven?
Here is the error [1]

The most obvious error I see is the transfer failed from
repo.maven.apache.org but I don't understand why. I was able to retrieve
manually build-helper-maven-plugin-3.2.0.pom using wget.

Any help appreciated.

1. http://paste.debian.net/1318665/


Yeah, the root of the error is here:

Caused by: java.net.SocketException: Network is unreachable (connect failed)
     at java.net.PlainSocketImpl.socketConnect (Native Method)
     at java.net.AbstractPlainSocketImpl.doConnect
(AbstractPlainSocketImpl.java:412)
     at java.net.AbstractPlainSocketImpl.connectToAddress
(AbstractPlainSocketImpl.java:255)
     at java.net.AbstractPlainSocketImpl.connect
(AbstractPlainSocketImpl.java:237)
     at java.net.SocksSocketImpl.connect (SocksSocketImpl.java:392)
     at java.net.Socket.connect (Socket.java:609)

So, the Maven utility is unable to connect to the host repo.maven.apache.org
via HTTPS to retrieve the artifacts. This is nothing specific to Guacamole,
this is some issue with Maven and your network setup. I suspect it has
something to do with the IPv6 + NAT64 configuration and perhaps some Java
incompatibility with that, but I don't know that or sure - you might want
to look around the Maven website and see if it has any information on this
particular error or on IPv6-only configurations.

Problem solved.

I had to explicitely instruct java to to prefer IPv6. I invoked maven like this:

MAVEN_OPTS="-Djava.net.preferIPv6Addresses=true" mvn package -X


as someone explained  in the maven mailing-list [1] and it was okay.

I now have a compilation failure but I will start a new thread if I don't figure it out myself.

1. https://lists.apache.org/thread/f5q9z2mrg88jn77hr2gdykkbxo8rsmsl

--
Willy Manga


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to