...
A custom filter file may be provided as a system property sl.customFilterFile
inside the sealightsJvmParams
section in the JSON fie file for the Maven or Gradle plugins.
...
Here is a relevant JSON file fragment example:
Code Block |
---|
"sealightsJvmParams": {
"sl.customFilterFile": "config/CustomFilter.json"
} |
The resulting Maven pom file fragment example:
...
This parameter is only relevant to an
executionType
that executes the scanner likefull
, orscanonly
. It does not apply totestonly
.You can declare this system property into a
buildScannerParams
section rather than the genericsealightsJvmParams
. This way it will not be passed to java commands other than the build scanner during the Maven execution.
Custom Filter Sample file
...