Could not resolve dependencies for project com.newhero.project:project-service:jar:0.0.1-SNAPSHOT:

来源:互联网 发布:淘宝信用查询网 编辑:程序博客网 时间:2024/04/28 17:04

“`
[ERROR] Failed to execute goal on project project-service: Could not resolve dependencies for project com.newhero.project:project-service:jar:0.0.1-SNAPSHOT: Failed to collect dependencies for [com.newhero.project:project-dao:jar:0.0.1-SNAPSHOT (compile?)]: Failed to read artifact descriptor for com.newhero.project:project-dao:jar:0.0.1-SNAPSHOT: Could not find artifact com.newhero.project:project-parent:pom:0.0.1-SNAPSHOT -> [Help 1]

今天从git上远程拉取了一下工程,后 maven的install报错,很多依赖库标红了。

command+shift 去往~/.m2下,看那些标红的jar其实都存在。

最后原因是不小心点了如下图标 ,把maven断网了。
这里写图片描述

至于为何明明在本地有,却也要使得maven处于在线状态
暂时还没去研究清楚

0 0
原创粉丝点击