eclipse中的Maven错误(pom.xml):无法转移org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4

我想使用Maven制作web项目自动导入我需要的所有库,所以我选择了"maven-archetype-webpp"

之后我在pom.xml文件上出现了这个错误:

 Description Resource Path Location Type Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from http://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 (http://repo.maven.apache.org/maven2): The operation was cancelled. pom.xml /SpringTuto line 1 Maven Configuration Problem 

我更新了我的Maven项目,但没有结果!

POM.XML:

  4.0.0 com.pre.example SpringTuto war 0.0.1-SNAPSHOT SpringTuto Maven Webapp http://maven.apache.org   junit junit 3.8.1 test    SpringTuto   

您只需要按照以下步骤操作:

  1. 右键单击您的项目:运行(As) – > Maven clean
  2. 右键单击您的项目:运行(As) – > Maven安装

右键单击project-> Maven->单击复选框’强制更新’ – >更新

只需右键单击您的项目,hovermaven然后单击更新项目..完成!!

在我的情况下,这是对eclipse的失败导入。 我不得不从eclipse中删除项目(当然没有删除文件系统)并重新导入它。 之后,错误立即消失。