Maven中央仓库下载太慢了,国内阿里云镜像不错,配置如下
全局配置
.m2/settings.xml
文件<profiles>
节点下增加阿里云
1 2 3 4 5 6 7 8 9
| <profile> <id>aliyun</id> <repositories> <repository> <id>aliyun</id> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> </repository> </repositories> </profile>
|
启用阿里云
1 2 3
| <activeProfiles> <activeProfile>aliyun</activeProfile> </activeProfiles>
|