When IntelliJIdea is used for the first time, when Maven is not configured, its default warehouse storage location is C drive: as shown below
As the number of projects increases, it will occupy more of the C drive, so we need to consider changing its address.
One, Maven installation and environment variable configuration
The address for obtaining Maven is as follows, and I have improved the xml in it.
Link: https://pan.baidu.com/s/1vtynEIMytbDvKDddtp_2rA
Extraction code: xptt
Step 1: Download and decompress, I decompressed it to Disk D, and then created a repository folder under this folder, as a warehouse
Step 2: Configure the settings.xml file
Step 3: Modify the content, which is the path of the repository in the first step
Step 4: Open idea and set it up as follows
Step 5: Operate as shown
Step 6: Look at the picture
Second, modify the image to be an Ali image
Step 1: Open the following file
Step 2: Make the following configuration:
The code is:
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
You only need to copy the XML configuration file in Maven downloaded from the header, and I will configure it for you all.