Just reimport didn’t work. Following worked for me.
File -> Invalidate Caches /Restart
Then
Build -> Rebuild Project
That will reimport maven project.
Note : You need to invalidate the cache AND ALSO rebuild the project.
More Related Contents:
- IntelliJ inspection gives “Cannot resolve symbol” but still compiles code
- How do I change the IntelliJ IDEA default JDK?
- How to set -source 1.7 in Android Studio and Gradle
- Maven Compilation Error: (use -source 7 or higher to enable diamond operator)
- Error: JavaFX runtime components are missing, and are required to run this application with JDK 11 [duplicate]
- Error:java: invalid source release: 8 in Intellij. What does it mean?
- Invalid signature file digest for Manifest main attributes exception while trying to run jar file
- Enable Partial Compilation in IntelliJ IDEA
- Android Studio cannot resolve symbol but code executes correctly
- Maven plugins can not be found in IntelliJ
- Best way to add Gradle support to IntelliJ Project
- IntelliJ and JSP/JSTL cannot resolve taglib for JSTL in tomcat7 [duplicate]
- How to convert a normal java project in intellij into a JavaFx project
- Hot swapping in Spring Boot
- Lombok added but getters and setters not recognized in Intellij IDEA
- IntelliJ Compilation Error zip END header not found
- How do I create a runnable JAR in IntelliJ as I would in Eclipse
- Where is the “server log” for Tomcat when running externally from IntelliJ Ultimate?
- Error: Gradle: execution failed for task ‘:app:preDexDebug’
- How to set JVM arguments in IntelliJ IDEA?
- IntelliJ: Never use wildcard imports
- IntelliJ doesn’t load javafx packages from Maven dependencies (JavaFX 17)
- How to set IntelliJ IDEA Project SDK
- BUG! exception in phase ‘semantic analysis’
- IntelliJ gradle add module dependency
- IntelliJ Organize Imports
- Can I find out the return value before returning while debugging in Intellij?
- IntelliJ IDEA 13 uses Java 1.5 despite setting to 1.7
- Which @NonNull Java annotation to use [duplicate]
- Kotlin: Use a lambda in place of a functional interface?