[Study Notes] 1. IDEA configures Maven Ali source

Maven domestic download speed is too slow

Set up Ali source

Ctrl +Alt +SOpen configuration,
Insert image description here

settings.xmlThe file does not exist by default . Create a new one.

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

    <localRepository>D:/server/maven/repository</localRepository>

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

localRepositoryIt is a local warehouse, where the downloaded dependent files are saved. If the file does not exist, it will be downloaded first.

Set up automatic downloads

Insert image description here

Guess you like

Origin blog.csdn.net/q116975174/article/details/103951358