Create a project using Maven today, but an error is reported in the POM file after the project is created. The error is as follows:
What does the above mean? The plug-in Maven-surefire-plugin cannot be found. The solution is as follows:
First open the local repository, follow the org \ apache \ Maven \ plugins \ Maven-surefire-plugin \ 2.12.4 path to open the folder, found that only the maven-surefire-plugin-2.12.4.pom.lastUpted such as the file ending with lastupted,
Delete all these files, update Maven dependencies, and the error disappears.
Another error is that when log4j 1.2.15 or later is used, if you directly inject this dependency into pom, an error occurs because log4j later than version 1.2.15 depends on other jar packages, but it cannot be obtained directly through the central repository. Therefore, you need to manually add these Dependencies
Jar package. If you are using a previous version, there is no problem.
In the maven project, the POM file reports that the Plugins cannot be found.