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.
Asked
Active
Viewed 772 times
0
-
add spring boor parent and check. Refer https://spring.io/guides/gs/spring-boot/ – Kathirvel Subramanian Jun 18 '20 at 17:37
-
Are you using IntelliJ 2020? – stdunbar Jun 18 '20 at 17:38
-
the instructor in my lecture recording just added it into his pom.xml w/o installing anything prior? @KathirvelSubramanian – Robin Konold Jun 18 '20 at 17:39
-
@stdunbar yes i am. – Robin Konold Jun 18 '20 at 17:39
1 Answers
1
IntelliJ 2020 has one of the worst user interfaces in the history of computing when it comes to Maven. Look for the tiny:
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
-
-
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
