我试图弄清楚我的行家发生了什么。前几天我切换到 Windows 8,发现使用 maven 构建应用程序有问题(请参阅底部的失败消息):
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.400s
[INFO] Finished at: Sat Apr 13 18:36:56 CEST 2013
[INFO] Final Memory: 18M/178M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project Example: Could not resolve dep
endencies for project
(Here are lots of libs)
Could not transfer artifact com.sun.xml.bind:jaxb-impl:pom:2.2.4-1 from/to central (
http://repo.maven.apache.org/maven2): Connection to http://repo.maven.apache.org
refused: connect: Address is invalid on local machine, or port is not valid on
remote machine -> [Help 1]
当切换到 java 6 时,一切工作正常。我什至禁用了 Windows 防火墙,但没有任何成功。也许有人遇到过这个问题?
这是我的环境:
- 视窗 8 x64
- JDK 7u17(同时检查 x86 和 x64)
- Maven 3.0.5