Solve the problem that iDEA pom.xml depends on jar but the External Libraries package is empty.
When some friends imported/created a maven project, the pom.xml file obviously relied on the jar package, but found that the External Libraries did not reference the jar package and there was only one jdk jar package in it. Today I will teach you how to solve this problem.
First of all, there is only one jdk jar under the abnormal project External Libraries.
The following is a normal project. You can see that there are some jar packages referenced by pom files in External Libraries.
Solution
1. First enter the .idea/misc.xm file and delete all the contents in the set element.
2. After deleting, right-click the maven project and click Reimport to automatically add the module
, and you're done! ! ! ! ! !