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>
效果:
從圖中可以看出,很快就過去了,再也不卡了~