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:
- About maven Pom.xml Personal solutions to reporting errors!!!
- How to Fix Tomcat Error: Failed to destroy end point associated with ProtocolHandler[ajp-nio-8009]
- Maven download and configuration
- Unknown error in POM file of springboot project
- The import Maven project appears http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException Solutions
- Server Tomcat v8.0 Server at localhost failed to start.
- Solutions to the problem of “Autowired cannot be resolved to a type” in eclipse Maven project
- Reason for error in idea @ springbootapplication [solved]
- The spring boot project was first created, pom.xml The error is Maven configuration problem. How to solve it?
- @Solution to get / set error in eclipse after using data annotation
- Failed to find target with hash string ‘android-25’ in:D:\SDK
- mvn install Error: Failed to read artifact descriptor org.apache.maven.plugins:maven-install-plugin:jar:2
- Maven global configuration
- @How to solve eclipse error after setter and @ getter (@ data) annotation
- Failed to read artifact descriptor for * maven
- Import Maven project pom.xml File error
- Failed to execute goal in Maven build org.apache.tomcat .maven:
- Failed to resolve: com.android.support:appcompat-v7:25.3.0
- 解决Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
- How to Fix Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile