maven ...../.m2/settings.xml

<?xml version="1.0" encoding="UTF-8"?>

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

  <mirrors>
    <mirror>
      <id>alimaven</id>
      <name>aliyun maven</name>
    <url>http://maven.aliyun.com/nexus/content/groups/public/</url> 
    <mirrorOf>central</mirrorOf>   
    </mirror> 
     <mirror>  
        <id>mvn</id>  
        <mirrorOf>mvnrepository</mirrorOf>  
        <url>http://mvnrepository.com/</url>  
    </mirror>  
    
  </mirrors>
</settings>

 

posted @ 2017-06-02 09:47  一支小白  阅读(877)  评论(0编辑  收藏  举报