zbb20181006 maven配置阿里云中央仓库

 

 首先查看下maven安装位置下的/conf/settings.xml的路径,如下图我这里是D:\Java\apache-maven-3.3.9\conf\settings.xml

然后根据路径找到配置文件在mirrors标签加入如下内容:

1
2
3
4
5
6
< mirror >
       < id >alimaven</ id >
       < name >aliyun maven</ name >
       < url >http://maven.aliyun.com/nexus/content/groups/public/</ url >
       < mirrorOf >central</ mirrorOf >       
</ mirror >

具体效果图如下:

 首先查看下maven安装位置下的/conf/settings.xml的路径,如下图我这里是D:\Java\apache-maven-3.3.9\conf\settings.xml

然后根据路径找到配置文件在mirrors标签加入如下内容:

1
2
3
4
5
6
< mirror >
       < id >alimaven</ id >
       < name >aliyun maven</ name >
       < url >http://maven.aliyun.com/nexus/content/groups/public/</ url >
       < mirrorOf >central</ mirrorOf >       
</ mirror >

具体效果图如下:

猜你喜欢

转载自www.cnblogs.com/super-admin/p/9746703.html