Reputation: 137
I am trying to create spring boot application in my local using maven. Bit im getting below error.
**Project build error: Non-resolvable parent POM for io.spring.boot.quickstart:course-api:0.0.1-SNAPSHOT: Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:1.4.2-RELEASE in central (https://repo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local POM**
Pom.xml :
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.2-RELEASE</version>
</parent>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
Even I tries to delete .lastmodified and update project. But no luck.
Upvotes: 0
Views: 9417
Reputation: 1
I had the same problem in my pom.xml file .... was as it is. i just removed and re-added the tag, it triggered a refresh of the Maven project in your IDE, fixing any misconfigurations or inconsistencies in your pom.xml.
Upvotes: 0
Reputation: 1
Just go to Project Tab on Eclipse and Select Clean. Then Eclipse will automatically remove the Maven Dependencies and re-build your project. By then, the error may be gone.
Top Section after File-Edit-Navigate-Search. You will find Project
Upvotes: 0
Reputation: 7917
Your version is incorrect. Correct one is:-
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.2.RELEASE</version>
<type>pom</type>
</dependency>
It's 1.4.2.RELEASE
and not 1.4.2-RELEASE
.
By the way your version is quite old. Latest one is 2.0.4.RELEASE
. If you want to keep backward compatibility, you can increase the patch version to 7, i.e. 1.4.7.RELEASE
.
Upvotes: 1