DependencyCheck icon indicating copy to clipboard operation
DependencyCheck copied to clipboard

Any way to configure mojo.properties at runtime?

Open theangrydev opened this issue 1 year ago • 5 comments

I notice that mojo.properties has quite a few properties that are not exposed by the Maven plugin.

Is there any way to provide this at runtime to the plugin?

I guess adding a <dependency> inside the <plugin> might work to add another item to the classpath, but would require building a JAR just for this purpose.

theangrydev avatar Dec 01 '23 10:12 theangrydev

At the moment, no. But if you set the value as an environment variable ODC will pick that up. What properties do you want to change?

jeremylong avatar Dec 01 '23 10:12 jeremylong

I was hoping to be able to set the cve.cpe.startswith.filter

theangrydev avatar Dec 01 '23 10:12 theangrydev

What did you want to change with the starts with filter?

jeremylong avatar Dec 01 '23 11:12 jeremylong

I noticed the recent issues with the NVD API and this seemed to be a key parameter, end goal is/was to stabilise my CI builds that use the plugin, that are currently failing due to intermittent HTTP error issues with the NVD API

theangrydev avatar Dec 01 '23 13:12 theangrydev

9.0.2 should be fine now.

jeremylong avatar Dec 01 '23 13:12 jeremylong