原文
    https://blog.csdn.net/qq_41489540/article/details/109388152

    这个settings.xml文件可以直接全部拷贝过去拿去用,我把注释都删掉了.配置了阿里云镜像.

    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
    3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    4. xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    5. <localRepository>D:\developSoftware\maven\repository</localRepository>
    6. <mirrors>
    7. <mirror>
    8. <id>alimaven</id>
    9. <name>aliyun maven</name>
    10. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
    11. <mirrorOf>central</mirrorOf>
    12. </mirror>
    13. </mirrors>
    14. </settings>