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 ^

GitHub 加速计划 / de / Dependencies
8.61 K
704
下载
A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.
最近提交(Master分支:3 个月前 )
1997a400 - 2 年前
2f423539 - 2 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐