Maven error in eclipse (pom.xml) : Failure to transfer org.apache.maven.plugins:maven-surefire-plugi
Posted 疯子加天才
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Maven error in eclipse (pom.xml) : Failure to transfer org.apache.maven.plugins:maven-surefire-plugi相关的知识,希望对你有一定的参考价值。
i wanna make web project using the Maven to import automatically all libraries that i need, so i chose "maven-archetype-webpp"
after that i got this error on pom.xml file :
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
im updated my Maven project but with no results !!
POM.XML :
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.pre.example</groupId> <artifactId>SpringTuto</artifactId> <packaging>war</packaging> <version>0.0.1-SNAPSHOT</version> <name>SpringTuto Maven Webapp</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> <build> <finalName>SpringTuto</finalName> </build> </project>
You need just to follow those steps:
- Right Click on your project: Run (As) -> Maven clean
- Right Click on your project: Run (As) -> Maven install
以上是关于Maven error in eclipse (pom.xml) : Failure to transfer org.apache.maven.plugins:maven-surefire-plugi的主要内容,如果未能解决你的问题,请参考以下文章
关于the ONE 在eclipse上会报错:Can't start: error in configuration file(s) 批处理就没问题。
eclipse+maven 在svn下载项目后出现很多的error 如下图.请高手帮忙看下.谢谢
eclipse maven update error 解决方法
eclipse不能启动,An internal error occurred during: "reload maven project".
eclipse里maven项目An error occurred while filtering resources解决办法(转载)
Eclipse maven 错误修正方法:An error occurred while filtering resources