给Eclipse添加maven功能时出现的错误

搭建环境时使用的是这位大佬的博客教程https://blog.csdn.net/qjyong/article/details/9098213


An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Multiple problems occurred while downloading.
Artifact not found: http://download.eclipse.org/technology/m2e/releases/1.10/1.10.0.20181127-2120/plugins/org.eclipse.m2e.profiles.ui_1.10.0.20181127-2120.jar.pack.gz.
http://download.eclipse.org/technology/m2e/releases/1.10/1.10.0.20181127-2120/plugins/org.eclipse.m2e.profiles.ui_1.10.0.20181127-2120.jar.pack.gz
Unable to connect to repository http://download.eclipse.org/technology/m2e/releases/1.10/1.10.0.20181127-2120/plugins/org.eclipse.m2e.profiles.ui_1.10.0.20181127-2120.jar
Connection timed out: connect
Artifact not found: http://download.eclipse.org/technology/m2e/releases/1.10/1.10.0.20181127-2120/features/org.eclipse.m2e.feature_1.10.0.20181127-2120.jar.
http://download.eclipse.org/technology/m2e/releases/1.10/1.10.0.20181127-2120/features/org.eclipse.m2e.feature_1.10.0.20181127-2120.jar

在这里插入图片描述
上为遇到的错误的代码和图片

解决办法为勾掉Contact all update sites during install to find required software。
在这里插入图片描述

随后在配置的时候又出现了 Target is not a supported Maven Home这个错误,如图↓
在这里插入图片描述

原因是我下载maven包错误,如图↓在这里插入图片描述
PS:两个内的settings.xml 是一样的,如果之前修改过,只需要拿之前修改的那个用就行了

注:https://blog.csdn.net/qjyong/article/details/9098213 博主在修改setting.xml的时候在m2文件夹前加了个点,像这样d:/.m2.然经过测试Windows下文件夹名字前无法加点,但我在c盘却见到了这种命名方式的文件夹,暂时没弄明白,有大佬知道望指点一下。


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值