本文介绍了maven下载jar包改用阿里云maven库的方法,分享给大家,具体如下:
修改maven安装路径中conf文件夹下的setting.xml文件
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
之后下载速度会很快
方法二:
直接在pom文件里更改 :
<!-- 阿里云maven仓库 -->
<repositories>
<repository>
<id>public</id>
<name>aliyun nexus</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
添加这段
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持天达云。