maven中央仓库ping不通的情况,原因及解决方案

由于天朝的防火墙。。。

如果发现ping repol.maven.org不通的时候要么使用代理,要么修改本地host文件

在host文件中追加72.21.81.253 repol.maven.org这样既可访问