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

DependencyConvergence should log only as WARNING instead of ERROR.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.1
    • 1.2
    • Standard Rules
    • None
    • Patch

    Description

      I find it disturbing that all other rules only log in level WARNING or even INFO, only DependencyConvergence uses ERROR. When looking in e.g. Jenkins for "real" errors I always stumble upon these messages. I therefore suggest turning the log-level down to WARNING. I ran mvn clean install -Prun-its successfully with my patched version.

      # This patch file was generated by NetBeans IDE
      # It uses platform neutral UTF-8 encoding and \n newlines.
      --- HEAD
      +++ Modified In Working Tree
      @@ -123,7 +123,7 @@
                   errorMsgs.addAll( getConvergenceErrorMsgs( visitor.getConflictedVersionNumbers() ) );
                   for ( CharSequence errorMsg : errorMsgs )
                   {
      -                log.error( errorMsg );
      \ No newline at end of file
      +                log.warn( errorMsg );
      \ No newline at end of file
                   }
                   if ( errorMsgs.size() > 0 )
                   {
      

      Attachments

        Activity

          People

            pgier Paul Gier
            mfriedenhagen Mirko Friedenhagen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: