天天看点

Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.5.2.RELEASECould not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.5.2.RELEASE

Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.5.2.RELEASE

Description Resource    Path    Location    Type
Project build error: Non-resolvable parent POM for com.shursulei.Springboot:Springbootday01:0.0.1-SNAPSHOT: 
Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.5.2.RELEASE from http://maven.aliyun.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.5.2.RELEASE from/to nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public): connect timed out and 'parent.relativePath' points at wrong local POM  pom.xml /Springbootday01    line 4  Maven pom Loading Problem
           

解决方法:快捷键win+r输入cmd,进入到后台,进入该项目的目录下,使用mvn compile的方式进行编译

E:\soft\eclipse-jee-mars-2-win32-x86_64\SSMworkspace\Springbootday01>mvn compile
           

使用eclipse,右键项目,maven-update project->则成功。

文章转载shursulei ,原文链接为:https://blog.csdn.net/shursulei/article/details/78889498

但是原作者说的不够详细,自己稍作补充

继续阅读