Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.
The reason may be that the download file is wrong
Solution:
1. Find the maven local repository, directory: C:\Users\Administrator\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin\2.12.4
2. Compare maven remote warehouse, address: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.12.4/, download and complete maven-surefire-plugin -2.12.4.jar, maven-surefire-plugin-2.12.4.pom and their corresponding sha1 files
3. Delete the file maven-surefire-plugin-2.12.4.pom.lastUpdated
4. Refresh the project or right click -->maven-->Update Dependencies