How do I configure maven to use Tor?

2019-08-23 06:17发布

问题:

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)

回答1:

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.



标签: maven proxy tor