0

I'm following a tutorial on springboot using IntelliJ IDEA and at some point it says to add this to the pom.xml

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-hateoas</artifactId>
</dependency>

but then the name spring-boot-starter-hateoas gets red (meaning there is an error there) and when I move the mouse over it it says

Dependency 'org.springframework.boot:spring-boot-starter-hateoas:' not found

What can I do to fix this? Any help would be appreciated!

Da Mike
  • 447
  • 4
  • 17

2 Answers2

2

I had similar errors. You have to update the maven project making sure you force updates

Right click on the project, scroll down to maven and click on update project.

On the window that pops up be sure to tick the Force Update of Snapshots/Releases option. Then click ok

Babi B
  • 183
  • 1
  • 2
  • 10
0

You might want to add the version to your dependency as well. Go to Maven repository and select a version and add that dependency snippet under maven to your pom.xml

  • Tried ` org.springframework.boot spring-boot-starter-hateoas 2.2.8.RELEASE ` but didn't work. Except if you meant something different and I didn't get it right. – Da Mike Jul 16 '20 at 15:53