Right click on pom.xml
File maven options craete settings.xml
Configure one of the mirrors below to add subsequent updates
After the creation is complete, the create settings.xml option will be changed to open settings.xml and then restart the idea
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>