cerner / ccl-testing

A collection of maven plugins and their dependencies to perform CCL Unit tests and static analyses and to generate reports from the results.
Apache License 2.0
16 stars 11 forks source link

Whitenoise: unlike mvn site, whitenoise:whitnoise-report doesn't seem to apply filters. #51

Closed feckertson closed 3 years ago

feckertson commented 3 years ago

This is a non-issue.

To make it work, add a pluginManagement entry for whitenoise in the pom file and endow it with an execution having id equal to "default-cli" configured with the desired filterFile value. To simplify things, define a property in the pom file, say whitenoiseFilterFile, and set the filterFile configuration equal to ${whitenoiseFilterFile} in both places. Note that this has the added advantage of making -DwhitenoiseFilterFile= have the desired effect when added to a maven command.