How do I configure maven to use Tor?

只愿长相守 提交于 2019-12-11 18:59:51

问题


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.



来源:https://stackoverflow.com/questions/17129327/how-do-i-configure-maven-to-use-tor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!