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
41
2
下载
A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.
最近提交(Master分支:4 个月前 )
1997a400 - 4 年前
2f423539 - 4 年前
Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐