Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6065

Creating option --fail-on-severity / -fos to support errorless or warningless builds

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.0
    • Fix Version/s: 4.0.0, 4.0.0-alpha-1
    • Component/s: None
    • Labels:

      Description

      I've been thinking the option --fail-level / -fl which is error by default, but could be changed to warning/warn. We've had similar request and they make sense: one should be able to execute a build without any warnings.
      I did an attempt to hook into the Logger to but that seems very tricky. The other option is to have this level available in the API, so Maven core and plugins can verify it for themselves and decide to throw an Exception. It is a simple implementation, but now every component is responsible for checking it, not really my preferred solution.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rfscholte Robert Scholte
                Reporter:
                rfscholte Robert Scholte
              • Votes:
                3 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m