Solve the problem that iDEA pom.xml depends on jar but the External Libraries package is empty

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.
insert image description here
The following is a normal project. You can see that there are some jar packages referenced by pom files in External Libraries.

insert image description here

Solution

1. First enter the .idea/misc.xm file and delete all the contents in the set element.
insert image description here
2. After deleting, right-click the maven project and click Reimport to automatically add the module
insert image description here
, and you're done! ! ! ! ! !
insert image description hereinsert image description here

Guess you like

Origin blog.csdn.net/weixin_44004020/article/details/100805643