異常信息:
parent.relativePath' of POM io.renren:renren-fast:3.0.0 (D:\Code\gulimall\renren-fast\pom.xml)
points at com.atguigu.gulimall:gulimall instead of org.springframework.boot:spring-boot-starter-parent,
please verify your project structure
問題原因:
因為我是直接拖了一個單一的springboot的項目文件到我的總項目里面,並且在最外層的pom的modouls加入了該項目
由於parent里寫的並不是xxx的上一級,而是繼承了springboot:
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.2.6.RELEASE</version> </parent>
所以加上:
<relativePath />
問題解決:
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.2.6.RELEASE</version> <relativePath /> </parent>
轉自:https://blog.csdn.net/weixin_42649056/article/details/109350851