maven nexus
Received status code 403 from server: Forbidden
Could not GET 'http://nexus.xxxx/repository/mxxxxb.jar'. Received status code 403 from server: Forbidden
事由:android studio更新jar包等,本地服务器仓库,产生Received status code 403 from server: Forbidden错误
原因:android studio里面proxy setting取消了,proxy网络代理。
期望:gradle更新nexus maven里面的包不走代理
实际:android studio不会去更新C:\Users\你的用户\.gradle\gradle.properties里面的proxyHost和port配置
期望链路:本机电脑IP->局域网的nexus服务器
实际链路:本机电脑IP->代理proxy[本例中mirrors.neusoft.edu.cn]->局域网的nexus服务器[nexus外网代理IP地址为非法访问,报403错误拒绝]
解决办法:gradle.properties里面的代码手动加"#"注释掉或者删掉#systemProp.http.proxyHost=mirrors.neusoft.edu.cn
#systemProp.https.proxyHost=mirrors.neusoft.edu.cn
#systemProp.https.proxyPort=80
#systemProp.http.proxyPort=80