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

Hide transfer logs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 3.0.5, 3.1.0
    • None
    • None
    • Patch

    Description

      Maven ConsoleMavenTransferListener adds too much verbose logs, Which is not required in all the cases and most of the time people uses it ( ConsoleMavenTransferListener by default)

      It causes little overhead,

      For example: in CI build it adds those logs which is not required all the time, also (in my case) it triggers the build of a very large maven project tree at each 10 min adding lots of logs on disk

      Also there are other people who wants this feature as well

      http://maven.40175.n5.nabble.com/m2-Turning-off-download-log-messages-td46662.html

      http://stackoverflow.com/questions/3409918/maven-how-can-i-stop-the-deploy-plugin-from-logging-upload-progress

      I know there is a -q but which gets very quiet, so it would be nice if we are able to just quiet transfer logs

      I modified maven source to hide those log based on the parameter and using it successfully

      I have attached the patch here which was applied against 3.1-SNAPSHOT specifically at revision : 1495788

      https://svn.apache.org/repos/asf/maven/maven-3/trunk

      added new parameter

      -qtl

      to make quiet transfer log

      If I overlooked anything and did over engineering please let me know,

      Otherwise I would love to see this option in next release

      Thanks!
      Jigar

      Attachments

        1. maven_qtl.patch
          3 kB
          Jigar Joshi
        2. maven_qtl.patch
          3 kB
          Jigar Joshi
        3. maven_qtl.patch
          3 kB
          Jigar Joshi

        Activity

          People

            Unassigned Unassigned
            jigar.joshi Jigar Joshi
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: