Maven---Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4

Source: Internet
Author: User

Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4

Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from Http://uk.maven.org/maven2 is Cached in the local repository, resolution won't be reattempted until the update interval of UK have elapsed or updates is forced. Original error:could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from/to UK (http ://uk.maven.org/maven2): The operation was cancelled.

In general, there may be a problem with the file format, the correct file content to replace the wrong file content, and constantly try, until the file does not error, of course, there may be the following reasons: The following is the 2.7.1 version of the method, other similar)

Or: Go to the path indicated by the jar package, delete the. lastupdated file, and then right-click the project-->maven-->update Dependencies

Or:

1. Locate the Maven library directory and enter: ~\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin\2.7.1

2. If the 2.7.1 directory is only, "maven-surefire-plugin-2.7.1.pom.lastupdated" will need to http://repo1.maven.org/maven2/org/apache/maven/ PLUGINS/MAVEN-SUREFIRE-PLUGIN/2.7.1/, download the files and put them in the 2.7.1.

3. Delete the maven-surefire-plugin-2.7.1.pom.lastupdated file under 2.7.1.

4. Project Right-click-->maven-->update Dependencies

Maven---Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4

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.