Skip to content

Commit e7d9f5a

Browse files
authored
Always look for checkstyle.xml in project root (#3645)
Prefix the checkstyle.xml path with the property `${maven.multiModuleProjectDirectory}`. This will prevent child modules from looking inside their own sub-folders for checkstyle.xml. This will allow us to build child modules from within their root folders without maven complaining about not being able to find the checkstyle.xml.
1 parent 4655076 commit e7d9f5a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,8 @@
17831783
<artifactId>maven-checkstyle-plugin</artifactId>
17841784
<version>3.6.0</version>
17851785
<configuration>
1786-
<configLocation>checkstyle.xml</configLocation>
1786+
<!-- Use multiModuleProjectDirectory to prevent child modules form looking inside their own sub-folders for checkstyle.xml. -->
1787+
<configLocation>${maven.multiModuleProjectDirectory}/checkstyle.xml</configLocation>
17871788
<failsOnError>true</failsOnError>
17881789
<failOnViolation>false</failOnViolation>
17891790
<consoleOutput>true</consoleOutput>

0 commit comments

Comments
 (0)