[ https://issues.apache.org/jira/browse/MENFORCER-431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Delany updated MENFORCER-431: ----------------------------- Description: I can select rules like {code:java} mvn verify -Drules=alwaysPass,alwaysFail {code} or skip all rules with {code:java} mvn verify -Denforcer.skip {code} But what if I want to skip a single rule? {code:java} mvn verify -DrulesSkip=BanVulnerableDependencies{code} Or multiple {code:java} mvn verify -DrulesSkip=BanVulnerableDependencies,NoPackageCyclesRule{code} Vulnerabilities could be discovered and published at any time. This would be a useful to quickly allow my builds to continue, since I can't always upgrade dependencies as they appear. I don't want to turn off ALL my enforcer checks and I also dont want to list all the checks in the build command. Skipping a rule is an exceptional circumstance so I don't want to commit it to the pom. was: I can select rules like {code:java} mvn verify -Drules=alwaysPass,alwaysFail {code} or skip all rules with {code:java} mvn verify -Denforcer.skip {code} But what if I want to skip a single rule? {code:java} mvn verify -DrulesSkip=BanVulnerableDependencies{code} Vulnerabilities could be discovered and published at any time. This would be a useful to quickly allow my builds to continue, since I can't always upgrade dependencies as they appear. I don't want to turn off ALL my enforcer checks and I also dont want to list all the checks in the build command. Skipping a rule is an exceptional circumstance so I don't want to commit it to the pom. > Skip specific rules > ------------------- > > Key: MENFORCER-431 > URL: https://issues.apache.org/jira/browse/MENFORCER-431 > Project: Maven Enforcer Plugin > Issue Type: New Feature > Components: Plugin > Affects Versions: 3.1.0 > Reporter: Delany > Priority: Minor > > I can select rules like > {code:java} > mvn verify -Drules=alwaysPass,alwaysFail {code} > or skip all rules with > {code:java} > mvn verify -Denforcer.skip > {code} > But what if I want to skip a single rule? > {code:java} > mvn verify -DrulesSkip=BanVulnerableDependencies{code} > Or multiple > {code:java} > mvn verify -DrulesSkip=BanVulnerableDependencies,NoPackageCyclesRule{code} > Vulnerabilities could be discovered and published at any time. This would be > a useful to quickly allow my builds to continue, since I can't always upgrade > dependencies as they appear. > I don't want to turn off ALL my enforcer checks and I also dont want to list > all the checks in the build command. > Skipping a rule is an exceptional circumstance so I don't want to commit it > to the pom. -- This message was sent by Atlassian Jira (v8.20.10#820010)