zl程序教程

您现在的位置是:首页 >  其他

当前栏目

Failed to execute goal on project xxx: Could not resolve dependencies for project

2023-04-18 13:17:08 时间

关于项目结构是一个多模块项目,在项目打包部署时遇到:

Failed to execute goal on project xxx: Could not resolve dependencies for project

的问题。

项目结构是一个父项目,多个子项目目录:

例如:

common --------------(父项目)

fristDemo ------------(子项目)

如果在子项目中调用了父项目,而对(子项目)打包时,就报:

Failed to execute goal on project fristDemo Could not resolve dependencies for projec

出现原因

  • pom依赖引用错误,可能是依赖名称错误
  • 打包时在子项目打包

解决:

  • 检查依赖是否报红
  • 检查是否打包位置错误