How do I configure maven to use Tor?

2019-08-23 05:40发布

I have looked at the documentation for proxy settings (specifcally the proxy mini-howto) in order to use maven with Tor. When I try to connect to Tor with the default port 9050, there is an error in the Tor message center that states Warning: Socks version 71 not recognized. (Tor is not an http proxy). How do I configure maven to work through tor?

(Also note that the suggestions at the Stackoverflow question How do I use maven through a proxy? were not succesful)

标签: maven proxy tor
1条回答
叼着烟拽天下
2楼-- · 2019-08-23 06:19

Since tor is not an HTTP proxy (like you commonly find in corporate environments) you have to specify the Java networking properties for SOCKS proxies on the command line.

See this answer to the question you linked to.

查看更多
登录 后发表回答