官方的解释以下:web
从2020年1月15日开始,中央存储库再也不支持经过纯HTTP进行的不安全通讯,而且要求对存储库的全部请求都经过HTTPS进行加密。apache
若是收到此错误,则须要用其 规范的HTTPS对应项替换全部对Maven Central的URL引用:安全
将http://repo.maven.apache.org/maven2/替换 为 https://repo.maven.apache.org/maven2/maven
若是您的环境因为某种缘由没法支持HTTPS,则能够选择使用咱们专用的不安全端点 ,网址为 http://insecure.repo1.maven.org/maven2/
所以仅须要改一下setting.xml里的设置:svg
<mirror> <id>nexus</id> <name>internal nexus repository</name> <!-- <url>http://192.168.1.100:8081/nexus/content/groups/public/</url>--> <url>https://repo.maven.apache.org/maven2</url> <mirrorOf>central</mirrorOf> </mirror>