我试图找出我的maven发生了什么。我最后几天切换到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时,eveything工作正常。我甚至禁用了Windows防火墙,但没有任何成功。也许有人遇到过这个问题?
这是我的环境:
答案 0 :(得分:1)
答案看起来很简单,我很尴尬但是.......正如我上面所写,我已禁用防火墙/ antyvirus但没有任何影响。但是我不会将java作为例外添加到我的antyvirus中,事实证明,扫描我的应用程序并且如果它被禁用则不允许某些人访问事件....这很奇怪,但在AV中增加了一个例外。抱歉打扰....