0

I'm trying to add Spring Boot to a maven project and i'm getting the following error and it's not being recgonized and allowing me to add dependencies "Dependency 'org.springframework.boot:spring-boot-starter-web:2.3.1.RELEASE' not found" Here is an image of my dependencies block in the pom.xml file. I am unsure what i am doing incorrectly.

stdunbar
  • 16,263
  • 11
  • 31
  • 53

1 Answers1

1

IntelliJ 2020 has one of the worst user interfaces in the history of computing when it comes to Maven. Look for the tiny:

enter image description here

towards the upper right hand part of the IntelliJ window when you're in your pom.xml. Click on the "M" refresh logo and that will reload your pom.xml and resolve dependencies.

stdunbar
  • 16,263
  • 11
  • 31
  • 53
  • Starting with 2020.1.2 version there is a new 3-state option so that the changes can be imported automatically: https://stackoverflow.com/questions/43192504/how-do-i-redisable-gradle-auto-import-for-an-intellij-idea-project. – CrazyCoder Jun 18 '20 at 18:19
  • I see I'm not allowed to express an opinion @CrazyCoder – stdunbar Jun 18 '20 at 18:24
  • Your opinion is appreciated, but would be better expressed in the relevant ticket, than in the answer to the specific user question: https://youtrack.jetbrains.com/issue/IDEA-235459. As you can tell from the votes count, you are not alone and it was indeed a poor solution to the problem. – CrazyCoder Jun 18 '20 at 18:26
  • I did open a ticket - but not someone starting out may not have seen that. – stdunbar Jun 18 '20 at 18:27