I am having a problem with IntelliJ not finding the imports (and subsequently the classes)
At the moment the code is bare bones and doesn't do anything, I am in the process of practicing my skills but I can't get past this error.
The IntelliJ project can be found on GitHub here
The code in question is MovieRecommenderSystemApplicationTests.java
package com.jreid.spring.basics.movierecommendersystem;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class MovieRecommenderSystemApplicationTests {
@Test
void contextLoads() {
}
}
And the errors are as follows:
java: package org.junit.jupiter.api does not exist
java: package org.springframework.boot.test.context does not exist
java: cannot find symbol
symbol: class SpringBootTest
java: cannot find symbol
symbol: class Test
location: class com.jreid.spring.basics.movierecommendersystem.MovieRecommenderSystemApplicationTests
IntelliJ finds the symbols without any problems.
Any help would be appreciated. Thanks
Enable auto import for maven dependency in settings Import Maven projects automatically
. And do mvn clean install
. If it won't work, use Invalidate Caches
menu to reindex mvn repository.
And be sure you have all dependencies in pom.xml of course
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