项目写完,需要打包了,点击package
![](https://img.haomeiwen.com/i4714843/e933c23933618b1b.png)
发现报错了
Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (checkstyle-validation) on project fsysb: 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'.
![](https://img.haomeiwen.com/i4714843/d5d61399adc954d9.png)
找了半天代码的问题,发现自己正常启动啥的,都没问题。最后还是google了一下,发现是我springboot的parent引入错误
![](https://img.haomeiwen.com/i4714843/d985f6573ab87e3f.png)
不应该是
spring-boot-parent
,而是spring-boot-starter-parent
更改之后重新打包就没问题了。记一下,防止下回出现。
网友评论