问题:
创建maven项目的时候,添加parent标签,报错误:
Project build error: Non-resolvable parent POM for model:maven01:0.0.1-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.5.3.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.5.3.RELEASE from/to central (https://repo.maven.apache.org/maven2): connect timed out and 'parent.relativePath' points at wrong local POM
解决:
maven使用国内代理————阿里镜像
参考博客:http://www.cnblogs.com/littleatp/p/6002289.html
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<!--<mirrorOf>central</mirrorOf> -->
<mirrorOf>*</mirrorOf>
</mirror>
不可以的尝试这个:
本文介绍了解决Maven项目中因无法正确下载依赖而导致的构建错误的方法。通过配置阿里云Maven镜像,可以有效提升依赖包的下载速度,并解决因网络问题导致的构建失败。
593

被折叠的 条评论
为什么被折叠?



