1

I am trying to start working with Spring Boot. I was going to follow a tutorial, and this tutorial took me to Spring Initializr. I generated a Maven project with Java 1.8, along with only the Spring Web dependency. Then, I tried to open it in IntelliJ community edition.

However, upon opening the project, I noticed 9-10 errors within the pom file. I have tried a number of things, but nothing has worked so far. I am new to Java, so I don't know if it's a JDK issue or whatever, but on the video, it worked seamlessly for him. I will attach a screenshot.

When I type java -version into CMD, I get the response java version "1.8.0_291" for reference.

Here is a list of the errors (screenshot not working):

Each of these errors appears about 3 times. These errors are generated from a fresh Spring Initializr download, so you can get the same exact file through the website yourself, too.

Thank you so much in advance!

zakpruitt
  • 162
  • 2
  • 11
  • 1
    It looks like there was a network problem when the project was built that made Maven Central unavailable. Building on the command line with `-U` should cause Maven to try again. Presumably there’s a similar option in IntelliJ that you could try. – Andy Wilkinson Jun 10 '21 at 06:07
  • @AndyWilkinson, could you specify what the command would be? Sorry, I am new to Java and Spring all together. Thanks! – zakpruitt Jun 10 '21 at 13:47
  • Something like `mvnw -U package` on the command line should do the trick. Alternatively, the answers to [this question](https://stackoverflow.com/questions/9980869/force-intellij-idea-to-reread-all-maven-dependencies) describe how to do the same in IntelliJ. – Andy Wilkinson Jun 10 '21 at 14:26

0 Answers0