XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.0
    • 3.2.0, 3.2.1
    • Plugin

    Description

      I can select rules like

      mvn verify -Drules=alwaysPass,alwaysFail 

      or skip all rules with

      mvn verify -Denforcer.skip
      

      But what if I want to skip a single rule?

      mvn verify -DrulesSkip=BanVulnerableDependencies

      Or multiple

      mvn verify -DrulesSkip=BanVulnerableDependencies,NoPackageCyclesRule

      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.

      Attachments

        Activity

          People

            sjaranowski Slawomir Jaranowski
            delany Delany
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: