ne1s
ne1s

Reputation: 101

Maven: permission denied to artifactory

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

Answers (1)

mikero
mikero

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

Related Questions