原因就是没找到父依赖,注意以下几点:
- 父类中是否有
relativePath
标签
<relativePath/> <!-- lookup parent from repository -->
- 查看
dependencyManagement
中的写法
一定要写type
和scope
- type = pom
- scope 一般compile ,但是要是继承的话 import 更加合适
参考文章:
scope详解:
https://blog.csdn.net/qgnczmnmn/article/details/118050472