After updating the Idea version or importing a new Maven project in the past few days, sometimes there will be "Dependency not found" or "Plugin not found" similar exception prompts. After checking the corresponding Dependency or Plugin in the local warehouse, Idea just cannot recognize it. In the process of solving the problem, combine the inquired network information and your own practice, and summarize the big tricks to solve the problem.
After trying each of these methods, please check whether the exception prompt disappears, or you can try to restart Idea and check again.
Method 1: Maven Reimport/Reload
Maven Reimport
select the project, right click, Run Maven - Reimport
Maven Reload
select the project, right click, Maven - Reload project
Method 2: Idea Maven
Open the preferences dialog box through the menu IntelliJ IDEA - Preferences...:
enter maven on the upper left, and click the option Maven:
Check the following three options: Maven home path: Maven installation directory User settings file: Maven configuration file * Local Repository: Maven local warehouse directory
If the Maven used is not built in Idea, but is additionally deployed by itself, you need to confirm: Does the Maven home path point to the Maven deployment directory? Does the User settings file point to conf/settings.xml inside the Maven deployment directory (recommended)? * Does the Local Repository point to the localRepository configured in conf/settings.xml (recommended)?
If the configuration is wrong, continue to the next step after correction; if the configuration is correct, continue to the next step directly;
Click the option Maven - Repositories:
Select the local warehouse item, click Update on the upper right (update may take a while).
Method 3: Idea Cache
opens the clear cache dialog box through the menu File - Invalidate Caches:
check all options, and then click Invalidate and Restart, this step will restart Idea by itself.