Gradle 编译spring源码时报错 peer not authenticated

从git下载spring3.2源码后,安装Gradle进行编译时报错,peer not authenticated,不能正常从仓库下载文件。

使用 JDK版本为1.7,Gradle版本为3.0,更换Gradle版本也不起作用。

解决方法,

1.打开build.gradle文件,把所有网址中的 https 改成 http。

2.在repositories中新增 maven { url "http://repo.springsource.org/plugins-release" }

如图

重新编译就可以正常下载文件了
 

猜你喜欢

转载自blog.csdn.net/ZixiangLi/article/details/86156768