Maven build - OK, Build Project - Fails when deps must be downloaded using socks proxy

Answered

Maven build - OK, Build Project - Fails, no deps can be downloaded

Also IDE do not see dependencies and everything is marked red;

Project started as Maven build project.

I though Build Project is a wrapper for maven build but it seems it uses totally different mechanism or configuration;

in my case I must download deps from Nexus in my company network (accessed via VPN).

I cannot access it directly so I must create proxy/tunnel via putty/ssh to server which have access to nexus; this enables socks proxy which works fine.

As I said, all works fine from cmd line or even Maven via IDE.

But IDE itself seems not to respect either:

- proxy settings

- manually added params for maven runner: -DsocksProxyHost=127.0.0.1 -DsocksProxyPort=80

0
1 comment

See http://stackoverflow.com/a/42427510/104891. Check the logs for errors.

Maven proxy is configured in settings.xml. Make sure IntelliJ IDEA is using the same Maven installation and the same settings file as your command line Maven that works.

0

Please sign in to leave a comment.