如何配置Maven以使用Tor? [英] How do I configure maven to use Tor?

查看:133
本文介绍了如何配置Maven以使用Tor?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我查看了有关代理服务器设置的文档(特别是 proxy mini- howto ),以便将Maven与Tor一起使用.当我尝试使用默认端口9050连接到Tor时,Tor消息中心出现错误,提示"警告:无法识别Socks 71版". (Tor不是http代理).如何配置Maven以通过Tor工作?

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?

(还请注意,关于Stackoverflow问题的建议如何通过代理使用Maven?不成功)

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

推荐答案

由于tor不是HTTP代理(就像您通常在公司环境中找到的那样),因此必须指定

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以使用Tor?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆