Maven学习-编译遇到‘src/checkstyle/checkstyle-suppressions.xml‘

一、问题描述

搭建Spring boot项目,编译时报错

从报错上看不出具体问题出在哪里,然后上午那个搜索下,发现问题在于pom.xml使用了错误的parent。

以上报错引用的parent是

<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-parent</artifactId>

二、解决问题
将parent改为

<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>

问题就得到解决了

以上问题在此记录一下哈

原文地址:https://www.cnblogs.com/dudu2mama/p/10536718.html