Because the default Maven repository server so we use very poor country in a foreign country, we can modify the download speed up to become the mirror address.
Both methods
Modify the global file
C: \ Users \ your computer account \ .m2 \ settings.xml
not download the attachment file inside
Modify the local, you need to use the specified configuration file
Modify the Maven installation directory /conf/settings.xml
files
Found <mirrors></mirrors>
in this country which joined Mirror Mirror source and Huawei cloud and provide cloud Ali
Note: You can manually configure if that node trouble, please download the file to the appropriate path coverage: Direct download
<mirror> <id>HuaweiCloud</id> <mirrorOf>*,!HuaweiCloudSDK</mirrorOf> <url>https://mirrors.huaweicloud.com/repository/maven/</url> </mirror> <mirror> <id>AliYUN</id> <name>AliYUN Maven</name> <mirrorOf>*,!HuaweiCloudSDK</mirrorOf> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> </mirror>
note:
If you need to use Huawei's cloud suite, please add the following configuration
Add the following node in profiles:
1 <profile> 2 <id>HWSDK</id> 3 <repositories> 4 <repository> 5 <id>HuaweiCloudSDK</id> 6 <url>https://mirrors.huaweicloud.com/repository/maven/huaweicloudsdk/</url> 7 <releases> 8 <enabled>true</enabled> 9 </releases> 10 <snapshots> 11 <enabled>false</enabled> 12 </snapshots> 13 </repository> 14 </repositories> 15 <pluginRepositories> 16 <pluginRepository> 17 <id>HuaweiCloudSDK</id> 18 <url>https://mirrors.huaweicloud.com/repository/maven/huaweicloudsdk/</url> 19 <releases> 20 <enabled>true</enabled> 21 </releases> 22 <snapshots> 23 <enabled>false</enabled> 24 </snapshots> 25 </pluginRepository> 26 </pluginRepositories> 27 </profile>
Increase activeProfiles label activate configuration:
1 <activeProfiles> 2 <activeProfile>HWSDK</activeProfile> 3 </activeProfiles>
And then specify the settings you use good tools such as configuration files Idea
effect