因为 3.8.1 版本的 Maven 的默认配置文件中阻止了 http 请求。
解决办法:
- 替换使用的Maven为3.6.3版本https://dlcdn.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.zip
-
私服 - 升级私服服务器,配置 HTTPS
-
修改maven配置文件
修改 Maven 全局的配置文件
maven-default-http-blocker external:http:* Pseudo repository to mirror external repositories initially using HTTP. http://0.0.0.0/ true



