Welcome to blog using the Markdown editor
Sometimes when we create new Maven projects, the pom.xml file likes to report errors (especially on the first line!). . However, our Settings configuration and so on are all fine. You may be confused at this point, but that’s okay. Follow these steps and give it a try. It might solve your problem.
The reason: Eclipse integrated Maven had issues (version issues or site access issues), and the newly installed Maven was not successfully added to the M2e plug-in
The solution is as follows:
Step.1 Go to the official website to download the appropriate version of Maven and store it in the appropriate path (or check the missing JAR file in the report — the corresponding error message will provide the URL to download the missing file — copy it to the appropriate path in the local repository).
Step.2 Open Eclipse Preferences -> Maven-> UserSettings changes the Global Settings and UserSettings to conf/settings.xml in Maven that you just downloaded
Step. 3 the Eclipse preferences – & gt; Maven-> * * * Click on Add to Add the Maven folder you just downloaded, and then check your own version instead of using the built-in one
Step.4 After the above two steps, you have successfully integrated the Maven version you downloaded with Eclipse, and then right-click on the project that reported an error before, and right-click Run As ->; Maven clean, then Run As ->; Maven install
ep.5: project right-click ->; Maven-> The Update Project step takes a bit of time and you can see if the Update has been completed by looking at the bottom right corner of the screen.
Read More:
- Maven project pom.xml The solution of error report in execution of
- About maven Pom.xml Personal solutions to reporting 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
- Idea2020.2 encountered pom.xml The problem of file error report in Maven plug-in tomcat7
- Maven project pom.xml Solutions to error reporting
- Maven of springboot project pom.xml Unknown error in the first line of the file
- The spring boot project was first created, pom.xml The error is Maven configuration problem. How to solve it?
- Research on Maven management of Java project pom.xml The jar package error is reported, but the project is running normally
- Application of IntelliJ idea in Maven project pom.xml Add dependency
- Solution of maven pom.xml dependency invalidation in IntelliJ
- pom.xml Depending on the error report, the problem of missing artifact XXX is solved
- Where’s Maven pom.xml Configure aliyun warehouse in
- Error in STS importing POM file of Maven project
- Error in the project tag in the POM file of Maven project: failure to transfer
- Idea Maven project uses package to package and report error (package does not exist)
- Error in Maven packaging web project: webxml attribute is required (or pre existing WEB-INF)/ web.xml if executing in update)
- The import Maven project appears http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException Solutions
- Error in Maven POM file: multiple annotations found at this line solution