maven https behind proxy
来源:互联网 发布:淘宝投诉失败 编辑:程序博客网 时间:2024/05/18 17:04
1.配置proxy
<proxies> <proxy> <id>my-proxy</id> <active>true</active> <protocol>http</protocol> <host>10.57.76.76</host> <port>3128</port> <nonProxyHosts>*10.*</nonProxyHosts> </proxy> </proxies>
2.如果遇到https问题,可配置中央仓库为http
参考:https://stackoverflow.com/questions/25911623/problems-using-maven-and-ssl-behind-proxy
<settings> <activeProfiles> <!--make the profile active all the time --> <activeProfile>securecentral</activeProfile> </activeProfiles> <profiles> <profile> <id>securecentral</id> <!--Override the repository (and pluginRepository) "central" from the Maven Super POM --> <repositories> <repository> <id>central</id> <url>http://repo1.maven.org/maven2</url> <releases> <enabled>true</enabled> </releases> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <url>http://repo1.maven.org/maven2</url> <releases> <enabled>true</enabled> </releases> </pluginRepository> </pluginRepositories> </profile> </profiles></settings>
PS: proxy搭建可使用"cntlm"搭建代理
阅读全文
0 0
- maven https behind proxy
- Working Behind a Network Proxy
- Use Watir-WebDriver behind proxy
- Working Behind a Network Proxy
- using pip behind a proxy
- apt-get behind a proxy server
- Salesforce API access from behind proxy
- Using applications behind a corporate proxy
- how to run docker build behind a proxy (docker build host machine behind a proxy)
- maven proxy
- maven proxy
- nginx proxy https
- How to use apt-get behind proxy server (Ubuntu/Debian)
- I can't add PPA repository behind the proxy
- Problem of testing SSH in git behind proxy
- Check if you are behind a transparent proxy
- [Atom] Cannot install package behind a proxy on Win7
- nodejs npm 安装报错 无法安装 behind a proxy
- Android音视频录制(4)——变速录制
- 探索者TSSD结构CAD3.0(包含单机版和网络版)带破解
- UE4如何上传文件
- 分治---循环赛日程表
- Android第三方库:Glide源码解析
- maven https behind proxy
- 【微信小程序】仿京东商品分类界面
- ViewStub
- NS-3之Tracing System
- Centos7 mysqldump定时任务,对mysql定时备份数据
- i.MX6UL -- Linux系统移植过程详解
- 《Java并发编程的艺术》第三章·附一——双重检查锁定与延迟初始化
- 字符串转换为浮点数
- 软件系统架构通俗理解之一:同步、异步、阻塞、非阻塞