解决问题:Could not transfer artifact org.apache.maven.surefire:surefire-junit-platform:pom:2.22.2

本文档详细介绍了如何处理Maven在打包过程中遇到的错误:Could not transfer artifact org.apache.maven.surefire:surefire-junit-platform:pom:2.22.2。错误源于无法从远程仓库获取该依赖。解决方法包括检查Maven设置,更改镜像源,以及处理证书问题。
摘要由CSDN通过智能技术生成

解决问题:Could not transfer artifact org.apache.maven.surefire:surefire-junit-platform:pom:2.22.2

报错提示:
Could not transfer artifact org.apache.maven.surefire:surefire-junit-platform:pom:2.22.2 from/to nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public/): transfer failed for

场景:
使用maven对项目进行打包

问题分析:
无法从远程获取Maven打包工具

解决方法:

1、File-》Setting-》maven 检查配置是否为自己下载的maven位置

在这里插入图片描述

2、在maven的setting.xml文件中修改镜像资源配置

<mirror>

评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值