When you import a MAVEN project using Eclipse, you will often find that in the imported MAVEN project, some of the. java files do not display the associated jar packages due to the lack of some jar packs in the native MAVEN local central repository.
Sometimes, use: Select Maven Project----> right click maven----> Update project ... Operation, as shown in figure one, still does not solve the problem. Try the method I'm talking about here.
Picture One
I accidentally tried this morning to get a method.
(1) After importing a MAVEN project using Eclipse, there are often errors in the. java file. shows that the appropriate jar package is not imported.
Picture Two
(2), move the wide mark to the name of the packet, wait until the eclipse prompt information. Select the bottom of the "Fix Project setup ..."
Picture Three
(3), after that, will pop up the following interface, the general selection of the first hint jar package, click "OK", the MAVEN local central warehouse in the missing jar package added.
Picture Four
(4), after the problem is resolved, the project no longer error.
Picture Five