A personal solution for Maven’s pom.xml error!!
When importing someone else’s project or creating a project using Maven from the command line, you may encounter errors in the pom.xml file (as shown below).

The reason is the lack of a corresponding JAR package. (It may be that the corresponding JAR package failed to download locally when we updated it) we need to update and download the corresponding JAR package by ourselves; Here are the steps:
C:\Users\ Tian bin\.m2\ Repository: C:\Users\ Tian bin\.m2\ Repository
2. Go to the maven-resources-plugin folder with the correct version number (2.12.4 for me) and click on it. C:\Users\ Tian bin\.m2\ Repository \org\ Apache \ Maven \ Plugins \ Maven-Resources-Plugin


3, Delete all files ending with lastUpdated.
4. Open Eclipse, right click on our project Maven> Update project…

5. Click OK!

Note: if there are other similar this kind of mistake in the pom, in the same way, according to the error message, you know which jar package, lack is to own Maven download updates to the local path to find the jar location (jar is consistent with the name and the name of the folder), delete all ends in lastUpdated files in the folder, finally open eclipse, right-click on our engineering Maven> Update project… , click OK. That’s it!!
When importing someone else’s project or creating a project using Maven from the command line, you may encounter errors in the pom.xml file (as shown below).

The reason is the lack of a corresponding JAR package. (It may be that the corresponding JAR package failed to download locally when we updated it) we need to update and download the corresponding JAR package by ourselves; Here are the steps:
C:\Users\ Tian bin\.m2\ Repository: C:\Users\ Tian bin\.m2\ Repository
2. Go to the maven-resources-plugin folder with the correct version number (2.12.4 for me) and click on it. C:\Users\ Tian bin\.m2\ Repository \org\ Apache \ Maven \ Plugins \ Maven-Resources-Plugin


3, Delete all files ending with lastUpdated.
4. Open Eclipse, right click on our project Maven> Update project…

5. Click OK!

Note: if there are other similar this kind of mistake in the pom, in the same way, according to the error message, you know which jar package, lack is to own Maven download updates to the local path to find the jar location (jar is consistent with the name and the name of the folder), delete all ends in lastUpdated files in the folder, finally open eclipse, right-click on our engineering Maven> Update project… , click OK. That’s it!!
Read More:
- Import Maven project pom.xml File error
- New Maven project– pom.xml report errors
- How to Fix Tomcat Error: Failed to destroy end point associated with ProtocolHandler[ajp-nio-8009]
- Server Tomcat v8.0 Server at localhost failed to start.
- [save] Maven’s pom.xml Labeled xsi:schemaLocation Error report
- Solutions to the problem of “Autowired cannot be resolved to a type” in eclipse Maven project
- mvn install Error: Failed to read artifact descriptor org.apache.maven.plugins:maven-install-plugin:jar:2
- Failed to execute goal in Maven build org.apache.tomcat .maven:
- Solution of plugins error reporting in idea maven
- Error in pom.xml file of sub module of Maven aggregation project
- pom.xml Depending on the error report, the problem of missing artifact XXX is solved
- The spring boot project was first created, pom.xml The error is Maven configuration problem. How to solve it?
- Spring boot problem 1: error reporting life processing instructions for building a spring boot project
- Unknown error in POM file of springboot project
- Failed to resolve: com.android.support:appcompat-v7:25.3.0
- IntelliJ idea startup error: error statuslogger log4j2 could not find a logging implementation
- Maven download and configuration
- Cannot resolve plugin org.springframework .boot:xxx
- Failed to read artifact descriptor for com.google.errorprone:javac:jar:9+181-r4173-1
- Idea Maven project uses package to package and report error (package does not exist)