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