Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-602

Turn warnings into errors instead of failOnWarning

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.0.2
    • Fix Version/s: None
    • Component/s: analyze
    • Labels:

      Description

      Currently, the dependency:analyze goal supports a parameter called failOnWarning which - when enabled - causes warnings to fail the build.

      This is confusing, especially for new developers on a team who are often unable to locate the dependency problems causing the build to fail in the logs because they only look for "error" level messages.

      To avoid such problems, I would suggest deprecating the failOnWarning parameter, and instead introduce a new parameter such as treatDependencyProblemsAs which could take as a default level "warning" and which users could alternatively set to "error".

      I am setting this as a "major improvement" because in my experience, it causes significant confusion over and over again.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rec Richard Eckart de Castilho
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: