Idea解法Failed to execute goal on project : Could not resolve dependencies for pro

Posted 来老铁干了这碗代码

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Idea解法Failed to execute goal on project : Could not resolve dependencies for pro相关的知识,希望对你有一定的参考价值。

造成原因是复制粘贴模块或者更改模块名字时,包名路径修改,重新打包就提示错误

首先仔细核对一下包的路径和它在计算机里的绝对路径是否一致,

接下来核对一下是否出现了包名、类名、方法名写错的情况。

最后执行清除缓存操作:

在这里插入图片描述

以上是关于Idea解法Failed to execute goal on project : Could not resolve dependencies for pro的主要内容,如果未能解决你的问题,请参考以下文章

IDEA报错Failed to execute goal

Idea创建Maven项目时出现Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1错误

使用idea maven打包项目 Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.0.2:resou

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:unpack (unpack)

unable to execute 'gcc': No such file or directory error: command 'gcc' failed with

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:3.1.0:clean