I added this repository to pom.xml, but IntelliJ fails to resolve org.springframework.boot.test:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>2.2.4.RELEASE</version>
<scope>test</scope>
</dependency>

However, after adding the library to classpath, it happens to work:

What's so special about this repository that I should add it manually?
EDIT:
<scope></scope> was causing this problem. I had no idea of what it actually does, and it made IntelliJ ignore my main directory.
Deleted it manually from the local maven repository. If it still not working. Add the older version to pom.xml. Hope it work
After adding the dependency to the pom.xml do a MAVEN REIMPORT. If it doesn't solve, go to main menu and do invalidate cache/restart ide. Then you are good to go.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With