1

我试图弄清楚我的行家发生了什么。前几天我切换到 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
4

1 回答 1

1

好吧,答案看起来很简单,我很尴尬,但是...... 正如我在上面所写的,我禁用了防火墙/防病毒,但没有任何效果。但是,我没有将 java 添加为我的防病毒软件的例外,事实证明,它正在扫描我的应用程序,并且如果它被禁用,则不允许某些访问事件...。这很奇怪,但在 AV 中添加一个例外会有所帮助。抱歉打扰了……

于 2013-04-13T17:16:24.963 回答