maven出现:Failed to execute goal on project ...: Could not resolve dependencies for project ...

来源:互联网 发布:捡人软件 编辑:程序博客网 时间:2024/04/19 14:11

1、我的项目结构是一个父项目,多个子项目目录如下:

这里写图片描述

2、我这里就举个例子,所以应用的也就是core和domain这两个项目。

3、两个项目都继承父项目

4、在模块中domain依赖于core,在core中执行完clean和install之后,本地仓库也存在依赖,但是在domain中进行install就会出现

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

这样测错误,最后发现原来是自己没有首先对父项目也就是interface-test项目进行clean和install ,

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

阅读全文
0 0
原创粉丝点击