在该文件中填入如下内容:





nexus
internalnexusrepository

http://repo.maven.apache.org/maven2
central



重新右键pom.xml文件,选择 maven,选择Reimport 即可下载依赖。操作步骤及settings.xml文件内容如图:

settings.xml文件内容:

至此,依赖依法下载的问题已经解决。。

疑惑:将settings.xml文件中的替换成如下内容,竟然也无法下载依赖(但看网上博客说会让下载速度变快的)





alimaven
aliyunmaven
http://maven.aliyun.com/nexus/content/groups/public/
central



uk
central
HumanReadableNameforthisMirror.
http://uk.maven.org/maven2/



CN
OSChinaCentral
http://maven.oschina.net/content/groups/public/
central



nexus
internalnexusrepository

http://repo.maven.apache.org/maven2
central


声明:本文内容来源于网络,版权归原作者所有,内容由互联网用户自发贡献自行上传,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任。如果您发现有涉嫌版权的内容,欢迎发送邮件至:czq8825#qq.com(发邮件时,请将#更换为@)进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。

热门推荐

免责声明:网站资源来源于网络,如有侵权,请及时联系删除。

Copyright © 2024 好资源导航网. All Rights Reserved.

蜀ICP备2021004611号-4 网站地图