Because IDEA itself comes with maven,
we can use it without downloading the local mavne.
Since IDEA's built-in maven warehouse image is a foreign address, downloading the jar package is relatively slow.
So we configured it as an Alibaba Cloud image.
mac configuration
1. Right-click on the IDES application and enter the package management. Find the plugins folder. Find the settings.xml file in the maven directory that comes with maven
2. In the setting.xml folder of maven, make the following changes.
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
window configuration
1. Find the plugins folder in the installation directory of your IDEA . Find the settings.xml file in the maven directory that comes with maven
2. Add content in setting.xml
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
Changes take effect
In the settings, remember to modify the location of the configuration file
mac as follows: (same for windows) After the
modification is completed, remember to restart the software.