解決springboot等以maven工具來構建專案的依賴包下載過慢問題
阿新 • • 發佈:2019-02-08
IDEA中新建了一個springboot專案,但是依賴的jar包下載很慢。
使用阿里雲maven映象,在maven的settings.xml中加入下面一段配置就可以很快的下載到jar包。
避免去maven中央倉庫下載,過慢或者對應版本不存在。
下面第一個節點是阿里雲映象。
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url >http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
<mirror>
<id>central</id>
<mirrorOf>central</mirrorOf>
<name>定義一個容易看懂的名稱 </name>
<url>http://repo1.maven.org/maven2</url>
</mirror>
<mirror >
<id>nexusMirror</id>
<mirrorOf>*</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://192.168.8.188:8081/nexus/content/groups/public/</url>
</mirror>
</mirrors>