要在Maven中启用代理访问,请在{MAVEN_HOME}/conf/settings.xml
定义代理服务器详细信息
注意
您的公司很有可能设置了HTTP代理服务器来阻止用户直接连接到Internet。 如果您使用代理,则Maven将无法下载项目依赖项。
PS已通过Maven 3.6测试
1.代理访问
1.打开Maven settings.xml
,找到proxies
标签:
{MAVEN_HOME}/conf/settings.xml
<!-- proxies
| This is a list of proxies which can be used on this machine to connect to the network.
| Unless otherwise specified (by system