Since you need to go to a foreign warehouse to download when using maven to download dependencies, the download is very slow.
So we can set up Alibaba Cloud mirroring and download dependencies directly from Alibaba Cloud's warehouse, and the download is very fast
1. Create a Maven configuration file
Create settings.xml or modify your existing settings.xml
The content is as follows
<?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">
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>
</settings>