Idea: Configure maven and add image configuration. idea: Configure maven Image
1. Open the maven storage folder and find conf-> settings. xml.
Find the <mirrors> node
Write the following content into the node.
<mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> <mirror> <id>repo2</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://repo2.maven.org/maven2/</url> </mirror> <mirror> <id>ui</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://uk.maven.org/maven2/</url> </mirror>
2. maven download files are stored on drive C by default and can be configured on another disk.
Or find the <localRepository> file in the settings. xml file and modify the address.
(1) The default storage path
(2) Storage path after modification
2. Configure maven in idea
File-> Settings configuration is as follows: