2
我在我的計算機上運行maven命令「mvn -e install」,我的網絡是IP4V,但它拋出IPV6異常,如何使用JAVA或maven OPTIONS切換到IPV4網絡。在IPV4網絡中使用maven3,但引發IPV6拋出IPV6異常
。。。。。。。。。。。。。。。。。。
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.maven.wagon.TransferFailedException: 10.10.19.4:18081/nexu
s
at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInput
Data(AbstractHttpClientWagon.java:799)
at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:11
6)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.
run(WagonRepositoryConnector.java:601)
... 4 more
Caused by: java.net.UnknownHostException: 10.10.19.4:18081/nexus
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:850)
at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1201)
at java.net.InetAddress.getAllByName0(InetAddress.java:1154)
at java.net.InetAddress.getAllByName(InetAddress.java:1084)
at java.net.InetAddress.getAllByName(InetAddress.java:1020)
at org.apache.maven.wagon.providers.http.httpclient.impl.conn.DefaultCli
entConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:242)
at org.apache.maven.wagon.providers.http.httpclient.impl.conn.DefaultCli
entConnectionOperator.openConnection(DefaultClientConnectionOperator.java:130)
at org.apache.maven.wagon.providers.http.httpclient.impl.conn.AbstractPo
olEntry.open(AbstractPoolEntry.java:149)
at org.apache.maven.wagon.providers.http.httpclient.impl.conn.AbstractPo
。。。。。。。。。。。
它看起來你的DNS似乎不能正常工作。或者你運行nexus的服務器不接受IP4連接。這更多的是網絡問題。 – khmarbaise 2012-03-19 08:26:07
您在UnknownHostException消息中擁有多個主機名。那是可疑的。它如何出現在你的pom中? – 2012-03-19 08:42:49