springboot项目启动报错:Failed to execute goal on project source-data: Could not resolve dependencies for

springboot项目启动报错:Failed to execute goal on project source-data: Could not resolve dependencies for project common-core:jar:1.0

报错信息

[ERROR] Failed to execute goal on project source-data: Could not 
resolve dependencies for project common-core:jar:1.0 : Failure to 
find common-core:jar:1.0 in http://maven.XXXXX/repository/maven-
public/ was cached in the local repository, resolution will not be 
reattempted until the update interval of citydo has elapsed or 
updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with 
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug 
logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolution
Exception

或者报错:

ERROR] Failed to execute goal on project source-data: Could not 
resolve dependencies for project common-core:jar:{revision} : Failure 
to find common-core:jar:1.0 in http://maven.XXXXX/repository/maven-
public/ was cached in the local repository, resolution will not be 
reattempted until the update interval of citydo has elapsed or 
updates are forced -> [Help 1]

原因:端口占用

出现原因

8080服务启动的时候,使用git还原commit记录【慎用,还原太远git代码丢失,从idea本地找回代码】,导致8080端口卡到了,出现了大量的8080端口服务。

处理方式

-- 查看指定端口对应的pid
netstat -ano | findstr 8080 
-- 关闭pid的进程,-F强制关闭,卡到了不给关。
taskkill /pid [查到的pid号] -F
例如:taskkill /pid 12356 -F

说明

common-core:jar为我自己本地打包的依赖,启动会显示找不到依赖,因为使用了flatten-maven-plugin来管理父子依赖,才开始报错版本会不显示,显示为下面的报错信息,初以为是插件的问题,去掉以后还是报错误,联想到启动类想到了端口,才试着去查一下端口,结果发现大量的8080端口,需要全部杀掉就可以运行了。

另外:报错信息可能不完善,有略微区别,大致报错信息是这个,这个信息是从相同报错的仁兄那里复制过来的,谢谢! ^ v ^

  • 4
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值