Maven 得到;找不到资源';src/checkstyle/checkstyle suppressions.xml“;使用spring boot 1.3.1时
maven checkstyle插件不应该提供默认的配置xml文件吗? 为什么在运行maven时会出现此错误 我不能谷歌一些解决这个问题的办法,请帮我得到它,谢谢 错误消息如下所示: [错误]无法执行目标 插件:maven checkstyle插件:2.16:check 在project explorer父级上进行(checkstyle验证):在 checkstyle执行:在以下位置找不到抑制文件: src/checkstyle/checkstyle-suppressions.xml:找不到资源 “src/checkstyle/checkstyle suppressions.xml”。->[帮助1]Maven 得到;找不到资源';src/checkstyle/checkstyle suppressions.xml“;使用spring boot 1.3.1时,maven,spring-boot,Maven,Spring Boot,maven checkstyle插件不应该提供默认的配置xml文件吗? 为什么在运行maven时会出现此错误 我不能谷歌一些解决这个问题的办法,请帮我得到它,谢谢 错误消息如下所示: [错误]无法执行目标 插件:maven checkstyle插件:2.16:check 在project explorer父级上进行(checkstyle验证):在 checkstyle执行:在以下位置找不到抑制文件: src/checkstyle/checkstyle-suppressions.xml:找不到资源
随附的pom文件:
您在
pom.xml文件中使用了错误的父级。您正在使用spring boot父级
,但它应该是spring boot starter父级
更新explorer父项的pom.xml
,使其
如下所示:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.1.RELEASE</version>
</parent>
org.springframework.boot
spring启动程序父级
1.3.1.发布
您能分享您的pom文件吗?看起来您从Spring Boot自己的构建中获取了配置,所以我猜您使用了错误的父级。我遇到了这个问题,它表明您添加了Spring Boot starter父级作为maven项目的父级,但您没有将spring boot starter添加为依赖项。已经附加了我的pom文件。再次感谢您帮助我获取它!