Skip to content

Commit

Permalink
Fix issue where spotbugs can't find the excludes filter file after th…
Browse files Browse the repository at this point in the history
…e reporting refactoring. (Azure#2966)
  • Loading branch information
JonathanGiles authored Feb 22, 2019
1 parent c086bd8 commit 3eb32a4
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion pom.client.xml
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,23 @@
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${spotbugs.version}</version>
<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>sdk-build-tools</artifactId>
<version>${maven-build-tools.version}</version>
</dependency>
</dependencies>
<configuration>
<effort>Max</effort>
<threshold>Low</threshold>
<xmlOutput>true</xmlOutput>
<spotbugsXmlOutputDirectory>${project.build.directory}/spotbugs</spotbugsXmlOutputDirectory>
<excludeFilterFile>spotbugs/spotbugs-exclude.xml</excludeFilterFile>

<!-- TODO soon - enable this failure mode -->
<failOnError>false</failOnError>
</configuration>
<executions>
<execution>
<phase>verify</phase>
Expand Down Expand Up @@ -318,7 +335,7 @@
<transformationSets>
<transformationSet>
<dir>${project.build.directory}/spotbugs</dir>
<includes><include>*.xml</include></includes>
<includes><include>spotbugsXml.xml</include></includes>
<outputDir>${project.build.directory}/spotbugs</outputDir>
<stylesheet>fancy-hist.xsl</stylesheet>
<fileMappers>
Expand Down

0 comments on commit 3eb32a4

Please sign in to comment.