Unable to build Spring boot project and getting error?

 

Project build error: Non-resolvable parent POM for com.abc:def:0.0.1-SNAPSHOT: Failure to transfer
org.springframework.boot:spring-boot-starter-parent:pom:2.0.5.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:2.0.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): connect timed out and 'parent.relativePath' points at no local POM


To fix this issue go to pom.xml and remove relativePath tag from parent tag as maven attempts to read the parent pom from a relative path on your hard drive where no relative path is specified:

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.0.5.RELEASE</version>
</parent>

 


Related #tags:     #error     #spring-boot     #pom.xml     #maven    

Related questions




Looking for change? Click below to prepare for technical interview.


Technical Interview Questions