idea大坑:多模块项目无法启动,报错Failed to execute goal on project*: Could not resolve dependencies for project
请容许我再骂一次IDEA这个大坑
玄学触发该bug
大致情况就是我rebase了其他分支代码,解决了各种冲突,然后再启动项目的时候就报错了,于是深陷无法自拔啊!!!所有配置什么的,真的是一点没有动
报错信息如下:
[ERROR] Failed to execute goal on project : Could not resolve dependencies for project Failed to collect dependencies at xxx .xxx-service:jar:dev: Failed to read artifact descriptor for xxxx/maven-snapshots/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of nexus-snapshots has elapsed or updates are forced -> [Help 1]
没有生效的解决办法
一开始自己各种解决,检查本地maven、检查pom,检查主项目下的<relativePath/>
配置,设置maven中总是自动更新,重启电脑,重启项目,甚至切换分支等等。最后仍然是无法解决
有效解决
这**就是IDEA的问题
找到Perferences
IDEA左上角点击如下图-找到Perferences-点击进入
找到Runner
Build,Execution,Deployment—》Maven—》Runner 如下图
取消勾选:Delegate IDE build/run action to Maven
问题解决
然后项目就活蹦乱跳的活了 心中再次骂一下IDEA