maven编译总是卡在这里好久才能过去,每次编译都要等好久,浪费时间
解决办法,设置maven的setting.xml,修改mirrors,加入阿里云配置
因为本地仓库找不到,默认不配置镜像,会自动去repo.maven.apache.org这个地址去下载,所以这里配置mirror为阿里云的镜像
<mirrors>
<mirror>
<id>aliyun-central</id>
<mirrorOf>central</mirrorOf>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>
效果:
从图中可以看出,很快就过去了,再也不卡了~