Skip to content
Advertisement

Getting error to import Spring boot parent into Pom.xml

I am trying to create a sample Spring-Boot project using maven but when i imported into Eclipse. I am getting an error in Pom.xml about spring-boot parent but when i run mvn command from terminal. It works fine. Also, in main class, it does not recognize org.springframework.*

I am getting an error which says that

JavaScript

My Pom.xml looks like this

JavaScript

Advertisement

Answer

Try adding repository in pom.xml. Also make sure you have proper internet connection so that dependencies will get downloaded from repo.

JavaScript
Advertisement