使用國外的倉庫速度不太理想,有的時候網(wǎng)絡(luò)不好要花費(fèi)很久的時間。因此選擇換成國內(nèi)的阿里云maven庫主要步驟如下
第一步,右擊項目名稱

image
第二步,創(chuàng)建setting.xml

image
第三步,填上這些即可

image
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>https://maven.aliyun.com/repository/central</url>
</mirror>
<mirrors>