Maven国内镜像配置(阿里云)-sunziren

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">
    <localRepository>D:/Maven_repository/repositorylocalRepository>
    <mirrors>
        <mirror>
              <id>alimavenid>
              <mirrorOf>centralmirrorOf>
              <name>aliyun mavenname>
              <url>http://maven.aliyun.com/nexus/content/repositories/central/url>
        mirror>
        <mirror>      
            <id>ibiblioid>      
            <mirrorOf>centralmirrorOf>      
            <name>Human Readable Name for this Mirror.name>      
            <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/url>      
        mirror> 
        
             
             
             
             
        
    mirrors> 
settings>

   直接把Maven目录下面的conf目录中的settings文件的内容改成上面的就可以了。

你可能感兴趣的:(Maven国内镜像配置(阿里云)-sunziren)