• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

‘parent.relativePath‘ points at com.xxx instead of org.springframework.boot:spring-boot-starter的极快解决

武飞扬头像
一碗谦谦粉
帮助1

快速解决: 在<parent></parent>加入 <relativePath/> 即可解决报错。

一、问题描述

Maven项目的pom文件报错:

'parent.relativePath' points at com.xxx instead of org.springframework.boot:spring-boot-starter-parent, please verify your project structure

学新通

二、原因

        报错已经指明了“parent.relativePath”指向com.atguigu.gulimal:gulimall而不是org.springframework.boot:spring-bootstarter父级,请验证您的项目结构。

这种情况一般是,手动拖拉了一个项目进来本项目中导致的。因为如果是脚手架new Module创建出来的,会自动加 <relativePath/>

 三、解决

 在<parent></parent>加入 <relativePath/> 即可

学新通

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhfkkihe
系列文章
更多 icon
同类精品
更多 icon
继续加载