1. 程式人生 > >Maven 設定映象庫--阿里雲

Maven 設定映象庫--阿里雲

修改maven根目錄下的conf資料夾中的setting.xml檔案

  <mirrors>
    <mirror>
      <id>alimaven</id>
      <name>aliyun maven</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
      <mirrorOf>central</mirrorOf>        
    </mirror>
  </mirrors
>
轉自:http://blog.csdn.net/u010717403/article/details/52188496

設定chinaOs映象

        <mirror>  
            <id>nexus-osc</id>  
            <mirrorOf>central</mirrorOf>  
            <name>Nexus osc</name>  
            <url>http://maven.oschina.net/content/groups/public/</url>  
        </mirror>  
        <mirror>  
            <id>nexus-osc-thirdparty</id>  
            <mirrorOf>thirdparty</mirrorOf>  
            <name>Nexus osc thirdparty</name>  
            <url>http://maven.oschina.net/content/repositories/thirdparty/</url>  
        </mirror>