Reputation: 101
When I'am trying to build project with maven and I'am getting an error: could not load dependencies from artifactory. permission denied:connect
.
My .m2/settings.xml
is ok and VPN connection is up (credentials is ok). Also I can open artifactory from browser or can ping from command line. I'am using maven 3.2.5 like all teammates.
But if I build project from eclipse with embedded maven version (3.0.2), the project builds successfully. Also if I'am using maven 3.0.2 locally, there is no problems with connection. The problem just on my pc, the project has no errors.
Upvotes: 1
Views: 3263
Reputation: 158
If you are using Windows OS, this issue may related to the ipv4/ipv6 Try to add
-Djava.net.preferIPv4Stack=true
when you are running the maven build command
Upvotes: 2