Spring boot starter parent not found

  

Spring boot starter parent not found dependency : 


Recently i faced this issue in intellij when creating a new java application where build is failing and when i check pom file it says : "Spring boot starter parent not found" 

Error 'Spring boot starter parent not found'




But with the similar configuration i have other projects gets built without any issues, i tried multiple things as below to fix this issue : 
  1. Did a File --> Invalidate Cache and Restart 
  2. Did a Maven clean and install 
  3. Verified Intellij --> Settings --> Build -- Build tools --> Maven --> Work offline should be unchecked 
After trying the above options still the issue persists, Then after some research i did the below and the issue got rectified.Sharing it here so that it will help others.

  •     Click on Intellij --> Settings --> Build -- Build tools --> Maven and then check following things :
    • use settings from .mvn/maven.config 
    • User settings file : Make sure you have the right file here 
    • Local repository : You should have the .m2 repository folder here 
Once i fixed the above configs then the project built successfully.






Comments

Popular posts from this blog

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: java.lang.NoSuchMethodError: 'boolean org.springframework.web.context.request.async.WebAsyncManager.isMultipartRequestParsed()'] with root cause java.lang.NoSuchMethodError: 'boolean org.springframework.web.context.request.async.WebAsyncManager.isMultipartRequestParsed()'

JPA Connect to multiple datasources

React Js : Text response is empty when using fetch