The idea startup project cannot find the package and prompts that the package does not exist

I am a parent-child project. The project does not report errors when compiling, building, and rebuilding, but when I start it with idea, it reports an
error: The package cannot be found. Or class... I
insert image description here
have found a lot of methods on the Internet and have not solved it. :reimport maven , rebuild does not work.Maven is actually complete, and this jar package is also available locally.
Now I have found several solutions on the Internet:
1. It is because of the bug of idea2020.1, which can be solved by ticking this in maven runner. I tried it and it was successful, but the startup is very slow
insert image description here
. 2. There is another saying It is to change the localrepository in maven's settings.xml to the default (if you change the warehouse address); I haven't tried this method, it should work, because it is to let him re-download the jar package in another folder

3. This is another way for me to test successfully. After clearing the caches of the idea project, and then restarting the idea, I found that the class that did not report an error but could not find it was reported as popular at this time. At this time, reimport maven can re-download the jar package 4. The
insert image description here
last method is to enter the command in the idea command line to execute: mvn idea:idea (untested)
5. It is definitely possible to change an idea version

 >   最后感谢那些遇到问题解决了分享出来的人!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324204002&siteId=291194637