Spring Boot + Maven: Project build error: Non-resolvable parent POM


I am creating a Spring Boot project using the Spring Starter Project. At first I did it normally a couple of times a few days ago. Today I try again and I find this error.

The description of the error is this:


Project build error: Non-resolvable parent POM for   com.example: demo: 0.0.1-SNAPSHOT: Failure to transfer   org.springframework.boot: spring-boot-starter-parent: pom: 1.5.15.RELEASE   from link 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.15.RELEASE   from / to central ( link ): connect timed   out and 'parent.relativePath' points at non-local POM

There are similar questions that suggest that you do this:

    <relativePath>../pom.xml</relativePath> <!-- lookup parent from repository -->

But nothing happens. And in general I do not understand the error (to which it refers). Please, I need some light. Thanks in advance.

asked by Hector Ccasani PerdidaMente 02.09.2018 в 23:09

1 answer


What the message tells you is that Maven went to download a dependency (in this case the parent and could not find it).

It could have been due to something specific (connection failure, server dropped, etc.); the point is that by default, Maven does not retry downloading the dependencies again after a while, so you get the same thing.


  • Run maven with the -U option that forces the dependency update.

  • Search for the local maven repository (in $HOME/.m2/repository ), find the folder org/springframework/boot/spring-boot-starter-parent and delete it, so that it does not find the dependency in local and try to load it again. More work, but will not try to update ALL the dependencies you have.

answered by 02.09.2018 / 23:17