I have a requirement to run Owasp Dependency check in dev infra alone, not on UAT and PROD. Our M2 repo is hosted in a airgap infra.
Currently we have a OWASP plugin configured part of Pom file which works fine, but i need to remove from pom file and use it along with Maven command line.
is it supported? if not any other workaround please?
Yes, any plugin can be run from the command line. See What is the syntax to run a maven plugin from the command line.
In your case the syntax is:
If you need to specify some cfg param, for example a suppression file, you can add a
-D
option:The parameter names are the ones described in the official documentation.