Maven突然接收权限被拒绝 [英] Maven All-of-a-sudden Receiving Permission Denied

查看:536
本文介绍了Maven突然接收权限被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Maven几个月来使用Artifactory来构建项目的依赖项.我今天早上(GIT)从我们的VCS中检出了所有最新代码,然后进行编译,但是Maven无法连接.我可以通过telnet和网络浏览器到达该位置.但是我尝试没有任何帮助.

I have been using Maven for several months to build using Artifactory for the project's dependencies. I checked out all of the latest code from our VCS this morning (GIT) and went to compile, but Maven cannot connect. I can reach the location by telnet and through a web browser. But nothing I try helps.

此外,我在本地.m2存储库中有Maven尝试下载的jar,但是Intellij(Maven插件)中的项目告诉我它无法解决依赖关系.

Additionally, I have the jars that Maven is trying to download in my local .m2 repository, but the project in Intellij (Maven Plugin) tells me that it can't resolve the dependencies.

任何建议,想法等,将不胜感激.

Any advice, thoughts, etc. would be greatly appreciated.

Downloading: http://salgs2cm01:8081/artifactory/libs-release/com/isomorphic/smartgwt-power/3.0.p20120509/smartgwt-power-3.0.p20120509.pom
May 10, 2012 9:21:44 AM org.apache.maven.wagon.providers.http.httpclient.impl.client.DefaultRequestDirector tryConnect
INFO: I/O exception (java.net.SocketException) caught when connecting to the target host: Permission denied: connect
May 10, 2012 9:21:44 AM org.apache.maven.wagon.providers.http.httpclient.impl.client.DefaultRequestDirector tryConnect
INFO: Retrying connect
May 10, 2012 9:21:44 AM org.apache.maven.wagon.providers.http.httpclient.impl.client.DefaultRequestDirector tryConnect
INFO: I/O exception (java.net.SocketException) caught when connecting to the target host: Permission denied: connect
May 10, 2012 9:21:44 AM org.apache.maven.wagon.providers.http.httpclient.impl.client.DefaultRequestDirector tryConnect

推荐答案

事实证明,在我看来,这是IPV6问题.在Windows 7环境中,我必须为MAVEN_OPTS添加一个值为-Djava.net.preferIPv4Stack=true的环境变量(必须重新启动命令行).

It turns out that in my case it was an IPV6 issue. On my Windows 7 environment I had to add an environment variable for MAVEN_OPTS with a value of -Djava.net.preferIPv4Stack=true (you have to restart your command line).

我希望这会有所帮助!

这篇关于Maven突然接收权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆