maven倉庫配置

apache官方提供的maven庫下載速度比較慢,因此能夠配置成aliyun的maven庫,這樣在構建項目的時候速度會提高不少,具體方法以下:apache

 vim /usr/local/maven/conf/settings.xml將以下內容添加到<mirrors>標籤中vim

<mirror>
  <id>alimaven</id>
  <name>aliyun maven</name>
  <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  <mirrorOf>central</mirrorOf>        
</mirror>
相關文章
相關標籤/搜索