Maven Valid permission denied

I have been using Maven for several months to create using Artifactory for project dependencies. This morning I checked all the latest code for our VCS (GIT) and went to compile, but Maven could not connect. I can reach the place via telnet and through a web browser. But nothing that I try helps.

In addition, I have banks that Maven is trying to load in my local .m2 repository, but the project in Intellij (Maven Plugin) tells me that it cannot resolve dependencies.

Any advice, thoughts, etc. are welcome.

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 
+8
maven
source share
1 answer

Turns out in my case it was a problem with IPV6. In my Windows 7 environment, I had to add an environment variable for MAVEN_OPTS with a value of -Djava.net.preferIPv4Stack=true (you must restart your command line).

Hope this helps!

+13
source share

All Articles