Ali switched maven central repository

switching mirror maven

Found maven installation directory, then go conf directory, open settings.xml conf directory, the following code replacement up, i.e., Ctrl + A and Ctrl + V

<?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">

<pluginGroups />
    <proxies />
        <servers />
           <mirrors >
               <mirror>
                   <id>planetmirror.com</id>
                  <name>aliyun</name>
                 <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
             <mirrorOf>central</mirrorOf>
           </mirror>
    </mirrors>

    <localRepository>C:\manveRepository</localRepository>


</settings> 

Or download documents

https://download.csdn.net/download/weixin_44037376/11536961

Published 24 original articles · won praise 11 · views 5414

Guess you like

Origin blog.csdn.net/weixin_44037376/article/details/99408452