maven提示:Failed to execute goal on project ...: Could not resolve dependencies for project ...

痛定思痛。 2023-10-18 14:42 265阅读 0赞

项目结构(父项目包含多个子项目):

watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3pob3V6aGl3ZW5nYW5n_size_16_color_FFFFFF_t_70

easyreport-common项目和easyreport-support项目都是easyreport 的子项目,其中easyreport-common项目 依赖easyreport-support项目。在easyreport-support中执行完clean和install之后,本地仓库也存在依赖,但是在easyreport-common中进行install就会出现:

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

最后发现原来是自己没有首先对父项目也就是easyreport 项目进行clean和install 。

总结:在父项目下有的子项目在首次运行clean 和install前应该先运行父项目的clean和install

发表评论

表情:
评论列表 (有 0 条评论,265人围观)

还没有评论,来说两句吧...

相关阅读