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:
- Maven project pom.xml Solutions to error reporting
- New Maven project– pom.xml report errors
- Import Maven project pom.xml File error
- [save] Maven’s pom.xml Labeled xsi:schemaLocation Error report
- Error in pom.xml file of sub module of Maven aggregation project
- The spring boot project was first created, pom.xml The error is Maven configuration problem. How to solve it?
- Solution of maven pom.xml dependency invalidation in IntelliJ
- Maven of springboot project pom.xml Unknown error in the first line of the file
- Where’s Maven pom.xml Configure aliyun warehouse in
- Idea2020.2 encountered pom.xml The problem of file error report in Maven plug-in tomcat7
- Maven project pom.xml The solution of error report in execution of
- Solutions to errors in XML files
- Application of IntelliJ idea in Maven project pom.xml Add dependency
- Research on Maven management of Java project pom.xml The jar package error is reported, but the project is running normally
- [details] jar conflict resolution in Maven (personal test)
- pom.xml Depending on the error report, the problem of missing artifact XXX is solved
- The import Maven project appears http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException Solutions
- Pytorch RuntimeError: Error(s) in loading state_ dict for Dat aParallel:.. function submit.py Solutions for reporting errors
- Solutions to the problem of “Autowired cannot be resolved to a type” in eclipse Maven project
- Error in Maven POM file: multiple annotations found at this line solution