study hard, improve every day
This article has been included in my Github warehouse DayDayUP: github.com/RobodLee/DayDayUP, welcome to Star, for more articles, please go to: Directory Navigation
Today because of the Maven problem, my head is very big. Since I upgraded IDEA2020.1, the original good project suddenly reported the Cannot resolve plugin XXX error , and the project under the Maven window has always been a red wavy line, just like As shown below:
Although I was reporting an error, the project can run normally, and the methods I found on the Internet didn't work, so I left it alone. The problem always needs to be solved. Today is Saturday, and I think we must solve this problem.
At first, I thought it was a problem with the Maven version, because my previous maven version was 3.5.2, could it be a compatibility issue between the latest version of idea and the 3.5.2 version of maven. So I downloaded the latest version of 3.6.3, and I didn’t report any errors. I ran the project happily. As a result, I encountered a more difficult problem. It always prompted that the package XXX does not exist and the symbol XXX was not found (forgot Take a screenshot). But the corresponding jar package does exist. I tried many methods and it didn't work. I changed several versions of Maven, but it still didn't work. I went to sleep after 3pm. After waking up, I switched back to the latest 3.6.3, and finally no error was reported, but I went back to the problem at the beginning: Cannot resolve plugin XXX was prompted , and the project can run normally.
At this time I noticed a button in the Maven window:
I was wondering if I was missing something, so I clicked this button, and then I started downloading. After I finished it, I restarted the idea, and all the problems were solved. But I still don’t know what caused the problem that the package XXX does not exist. It may be a bug in the new version of the idea, or something is missing. I can’t verify it. If I encounter this problem next time And I found the reason and the solution, I will write an article to share.
Last time PageHelper pagination always failed. I didn’t do it well for a long time. After a sleep, I didn’t do anything but it was inexplicable. So I suggest you go to sleep if you have any problems that can’t be solved. It will be fine if you wake up soon. Hahaha!