Idea external libraries does not show the solution to the external jar package introduced by maven

Time:2019-12-10

Record the small problems encountered in the process of using idea. Although it’s a small problem, it’s been confused for a long time. It’s very annoying.

A new Maven project is created to introduce related dependencies in POM files, but idea external libraries does not display the repositories introduced in Maven. Various solutions have been found on the Internet, but none of them can solve the problem. The incomplete statistics of these solutions are as follows:

reimport


Open Maven project – > life cycle – > clean on the right side of idea
install
Finally, in the Maven project sidebar, right-click project name – > reimport


Idea configuration file path C: users76193.intellijidea2018.2configuptionsprojectview.xml
Showlibrarycontents in is set to true


Delete idea configuration file C: users76193.intellijidea2018.2configuoptionsprojectview.xml, clean up idea cache and restart

None of the above methods work….

Finally, my solution is to delete the project and create a new one. After modifying the POM file, the idea pops up

Idea external libraries does not show the solution to the external jar package introduced by maven

Click Import changes, and the dependent jar package will be displayed in the external libraries, which is really a wonderful work….