Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (checkstyle-vali

在这里插入图片描述
今天在springboot学习中 用idea打包时出现的一个问题,
Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (checkstyle-validation) on project spring-boot-01-helloworld: Failed during checkstyle execution: Unable to find suppressions file at location: src/checkstyle/checkstyle-suppressions.xml: Could not find resource ‘src/checkstyle/checkstyle-suppressions.xml’. -> [Help 1]
[ERROR]
org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check这个找不到
Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (checkstyle-vali_第1张图片
这是pom文件配置`
Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (checkstyle-vali_第2张图片
镜像用的阿里的
Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (checkstyle-vali_第3张图片
错误原因是写了错误的依赖,应该是spring-boot-starter-parent而不是spring-boot-parent
修改完毕即可
Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (checkstyle-vali_第4张图片

你可能感兴趣的:(springboot)