为Nexus配置阿里云代理仓库

Nexus默认远程仓库为https://repo1.maven.org/maven2/,慢死,还常连不上。

 

添加阿里云代理仓库

添加库

 

 

 

其他默认,翻到最下面,点create repository

 

 

显示 Ready to Connect就OK了

 

把aliyun添加到仓库组中,记得把aliyun排在central上边

 

 

 

使用

 

我们在pom.xml中添加

<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>fastjson</artifactId>
    <version>1.2.8</version>
</dependency>

库里面就有了,从阿里云下载到私服了,哈哈

 

 

 

 

posted on 2019-08-21 11:35  小石头小祖宗  阅读(98)  评论(0)    收藏  举报  来源

导航