使用Maven 构建项目的时候 pom.xml 异常:ArtifactTransferException: Failure to transfer org.springframework:spring
来源:互联网 发布:贰贰网络 编辑:程序博客网 时间:2024/06/05 19:24
<dependency><groupId>org.springframework</groupId><artifactId>spring-web</artifactId><version>3.2.2.RELEASE</version></dependency>
ArtifactTransferException: Failure to transfer org.springframework:spring-web:jar:3.2.2.RELEASE 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.springframework:spring-web:jar:3.2.2.RELEASE from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://repo.maven.apache.org/maven2/org/springframework/spring-web/3.2.2.RELEASE/spring-web-3.2.2.RELEASE.jar
分析原因:连接不到中央仓库 http://repo.maven.apache.org/maven2 导致报错
解决方案:设置镜像屏蔽中央仓库地址, 替换成 http://uk.maven.org/maven2
<mirror><id>uk.maven.org</id> <mirrorOf>central</mirrorOf> <name>UK Central</name> <url>http://uk.maven.org/maven2</url></mirror>
0 0
- 使用Maven 构建项目的时候 pom.xml 异常:ArtifactTransferException: Failure to transfer org.springframework:spring
- maven项目的pom.xml文件出现红色错误提示:ArtifactTransferException: Failure to transfer
- maven 的 pom.xml 文件报错:ArtifactTransferException: Failure to transfer
- 使用maven 出现ArtifactTransferException:Failure to transfer
- 使用maven 出现ArtifactTransferException:Failure to transfer
- 使用maven 出现ArtifactTransferException:Failure to transfer
- 使用maven 出现ArtifactTransferException:Failure to transfer
- 使用maven 出现ArtifactTransferException:Failure to transfer
- maven ArtifactTransferException: Failure to transfer
- maven ArtifactTransferException: Failure to transfer
- maven ArtifactTransferException: Failure to transfer
- maven ArtifactTransferException: Failure to transfer
- maven ArtifactTransferException: Failure to transfer
- maven ArtifactTransferException: Failure to transfer
- maven ArtifactTransferException: Failure to transfer
- 关于 Spring boot 项目 偶然遇到 Failure to transfer org.springframework.boot:spring-boot-maven-plugin 问题的解决办法
- maven项目pom.xml报错: Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from
- Maven xml异常:Failure to transfer org.apache.maven.***
- 设计模式----行为型模式之观察者模式(Observer Pattern)
- XSS测试代码
- Hihocoder hiho一下 第141周 题目1 : 自行车架
- 欢迎使用CSDN-markdown编辑器
- 搜集了一些模型,精模低模都有
- 使用Maven 构建项目的时候 pom.xml 异常:ArtifactTransferException: Failure to transfer org.springframework:spring
- 生成随机文件名(年月日+5位随机数)
- HDU 5919 Sequence II [主席树]【数据结构】
- java第一天
- sql 分组求数量,并取最新一条数据
- html标签中的lang属性
- 由12306.CN谈谈网站性能技术
- ORACLE 表空间扩展方法
- 编程第三天