最近用IDEA新建了一個SpringBoot項目,在下載SpringBoot使用的相關的依賴時下載了很久後總是提示超時,讓人沒辦法。
於是修改Maven的配置文件settings.xml(D:\soft\maven\conf\settings.xml)裏設置地址爲阿里鏡像站,
這樣總算可以快速下載各種依賴包了。
阿里鏡像站地址:
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>