In the maven project, the POM file reports that the Plugins cannot be found.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.