By default, using IDEA to create maven project dependencies is sometimes frighteningly slow, but can be maddening in the context of the domestic network. Ali cloud found today open a central warehouse, we can try.

Modify the setting. XML file in the maven root conf folder as follows:

Find the mirrors element and add a mirror child to it:

<! <mirror> <id>nexus aliyun</id> <mirrorOf> Central </mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror>Copy the code

Then you can enjoy maven’s flying download speed.