问题:
创建maven项目的时候,添加parent标签,报错误:
Project build error: Non-resolvable parent POM for model:maven01:0.0.1-SNAPSHOT: Failure to transfer :spring-boot-starter-parent:pom:1.5. from /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 :spring-boot-starter-parent:pom:1.5. from/to central (/maven2): connect timed out and '' points at wrong local POM
解决:
maven使用国内代理————阿里镜像
参考博客:/littleatp/p/
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>/nexus/content/groups/public/</url>
<!--<mirrorOf>central</mirrorOf> -->
<mirrorOf>*</mirrorOf>
</mirror>
不可以的尝试这个: