Uploaded image for project: 'Maven Enforcer Plugin'
  1. Maven Enforcer Plugin
  2. MENFORCER-160

Add levels ERROR and WARN to enforcer rules

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.1
    • 1.4
    • Plugin, Rule API, Standard Rules
    • None
    • Patch

    Description

      As suggested in MENFORCER-159, it would be more feasible just have one goal but be able to differentiate via a level between rules which should fail the build and ones which only warn. I tried to be backwards compatible.

      See https://github.com/apache/maven-enforcer/pull/5 as well, sample configuration for WARN can be seen at https://github.com/mfriedenhagen/maven-enforcer/blob/6482333e64e67031e19cb5b928d5ad2ce896f38a/maven-enforcer-plugin/src/it/projects/always-fail-warn/pom.xml

      Attachments

        1. enable-level.patch
          14 kB
          Mirko Friedenhagen

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              mfriedenhagen Mirko Friedenhagen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: