[MENFORCER-516] Honor rule configuration when invoked from the command line (original) (raw)

I would like to configure a rule within the pom, and invoke just that rule from the command line, with the rule honoring the configuration in the pom.

For example, if I configure the plugin in the pom like:

    org.apache.maven.plugins     maven-enforcer-plugin     3.5.0                                                             my-project-group:*                                        

And run maven like:

$ mvn enforcer:enforce -Denforcer.rules=requireReleaseDeps

I would expect / like the exclude configuration to apply. Instead it does not.