I'm able to exclude *.kt
files using
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<configuration>
<excludeFilterFile>spotbugs-exclude-filter.xml</excludeFilterFile>
</configuration>
</plugin>
and in spotbugs-exclude-filter.xml
containing:
<FindBugsFilter>
<Match>
<Source name="~.*\.kt"/>
</Match>
</FindBugsFilter>
However, with spotbugs being in a parent pom (used by both Java and Kotlin projects) I'd prefer a pure maven solution so inheriting projects don't need that additional xml file. Is it possible?