maven Could not resolve dependencies for project xxx:jar解决办法

阅读: 评论:0

maven Could not resolve dependencies for project xxx:jar解决办法

maven Could not resolve dependencies for project xxx:jar解决办法

 

maven打包或者导入依赖的时候报错:Failed to execute goal on project xxxx

[ERROR] Failed to execute goal on project actuator-testbed: Could not resolve dependencies for project org.springframework:actuator-testbed:jar:0.1.0: Failed to collect dependencies at org.springframework.cloud:spring-cloud-starter-netflix-eureka-client:jar:1.4.0.RELEASE -> comflix.eureka:eureka-client:jar:1.4.11 -> comflixflix-commons:netflix-eventbus:jar:0.3.0 -> comflix.archaius:archaius-core:jar:0.7.4 -> commons-configuration:commons-configuration:jar:1.8: Failed to read artifact descriptor for commons-configuration:commons-configuration:jar:1.8: Could not transfer artifact commons-configuration:commons-configuration:pom:1.8 from/to alimaven (/): /Users/xxxxxxxx/apache-maven-3.6.0/repository/commons-configuration/commons-configuration/1.8/commons-configuration-1.8.pom.part.lock (No such file or directory) ->

解决方案

1 删除对应本地仓库的:Users/xxxxxxxx/apache-maven-3.6.0/repository/commons-configuration/中commons-configuration包,这里报错因人而异,根据你自己的报错的依赖路径写,我这里是”commons-configuration“,删除之。

重新执行

mvn install

 
打包后启动:

 

或者

mvn spring-boot:run

成功启动

本文发布于:2024-02-01 19:54:45,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170678848839069.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:解决办法   dependencies   resolve   maven   jar
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23