遇到的问题:
maven项目 修改pom.xml文件后报错:Failed to read artifact descriptor for org.springframework.boot:spring-boot-starter-web… 并且项目里没有生成Maven Dependencies目录。
说明:jar包没有下载成功
解决方法:
修改maven的settings.xml, 在mirrors标签中添加如下代码:
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
即:使用阿里的镜像
然后重新添加你要添加的依赖。
此时,问题解决!