Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Got "Could not find resource 'src/checkstyle/checkstyle-suppressions.xml" when using spring boot 1.3.1

Should not maven-checkstyle-plugin provides default config xml file? Why got this error when running maven?

I can't google some solution for this issue , please help me get it, Thanks!

The error message as below:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check (checkstyle-validation) on project explorer-parent: 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]


attached pom file: parent pom module pom

like image 345
Jeremy Wang Avatar asked Jan 18 '16 08:01

Jeremy Wang


1 Answers

You are using the wrong parent in your pom.xml file. You are using spring-boot-parent but it should be spring-boot-starter-parent.

Update the pom.xml of explorer-parent so that its <parent> looks like this:

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.3.1.RELEASE</version>
</parent>
like image 101
Andy Wilkinson Avatar answered Oct 06 '22 17:10

Andy Wilkinson