Showing compile error in IntelliJ-idea editor.
mvn clean install
When run it will build successfully and run code normally. But in editor its unable to resolve those import. Some of the import is showing correctly some of the import it's showing error like Blow
and actually, the dependency is present in maven dependency list
In the editor, it showing full of error
I modified build settings, deleted repo, updated maven to the latest version, updated the IntelliJ and tried other suggestion in StackOverflow, still no solution for this problem.
Try:
file
> invalidate caches / restart
I believe this issue is related to the way we open this project in IntelliJ Idea as mvn clean install
is working fine for you.
While opening the project in IntelliJ, you should open maven project like this:
maven
here)
This should hopefully solve your problem.
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