You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Raymond Augé (JIRA)" <ji...@apache.org> on 2019/03/31 13:29:03 UTC

[jira] [Comment Edited] (MNG-6605) Allow to suppress download messages in interactive mode

    [ https://issues.apache.org/jira/browse/MNG-6605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16806158#comment-16806158 ] 

Raymond Augé edited comment on MNG-6605 at 3/31/19 1:29 PM:
------------------------------------------------------------

[~gunnar] could yon confirm if my proposal solves your requirement for this issue?

[~michael-o] IIUC this has nothing to do with colors. It is purely for silencing download messages (such as these):
{code:java}
Downloading from central: https://repo.maven.apache.org/maven2/biz/aQute/bnd/biz.aQute.bnd.maven/4.2.0/biz.aQute.bnd.maven-4.2.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/biz/aQute/bnd/biz.aQute.bnd.maven/4.2.0/biz.aQute.bnd.maven-4.2.0.pom (3.6 kB at 1.7 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/biz/aQute/bnd/biz.aQute.bndlib/4.2.0/biz.aQute.bndlib-4.2.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/biz/aQute/bnd/biz.aQute.bndlib/4.2.0/biz.aQute.bndlib-4.2.0.pom (2.1 kB at 4.6 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/biz/aQute/bnd/biz.aQute.bnd.maven/4.2.0/biz.aQute.bnd.maven-4.2.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/biz/aQute/bnd/biz.aQute.bnd.maven/4.2.0/biz.aQute.bnd.maven-4.2.0.jar (112 kB at 61 kB/s)
{code}
during day to day use of maven (i.e. during "interactive" mode).

Truth be told the only time this information is of any real value is when an error occur which my change does neither prevent or improve the current state. Also the progress of downloading is also still provided. Furthermore, this is an opt in mode which requires setting {{{{-Dorg.apache.maven.cli.transfer.ConsoleMavenTransferListener.quiet}}}}.

I hope this explains my take on this issue. :)


was (Author: rotty3000):
[~gunnar] could yon confirm if my proposal change solves your requirement for this issue?

[~michael-o] IIUC this has nothing to do with colors. It is purely for silencing download messages (such as these):
{code:java}
Downloading from central: https://repo.maven.apache.org/maven2/biz/aQute/bnd/biz.aQute.bnd.maven/4.2.0/biz.aQute.bnd.maven-4.2.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/biz/aQute/bnd/biz.aQute.bnd.maven/4.2.0/biz.aQute.bnd.maven-4.2.0.pom (3.6 kB at 1.7 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/biz/aQute/bnd/biz.aQute.bndlib/4.2.0/biz.aQute.bndlib-4.2.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/biz/aQute/bnd/biz.aQute.bndlib/4.2.0/biz.aQute.bndlib-4.2.0.pom (2.1 kB at 4.6 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/biz/aQute/bnd/biz.aQute.bnd.maven/4.2.0/biz.aQute.bnd.maven-4.2.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/biz/aQute/bnd/biz.aQute.bnd.maven/4.2.0/biz.aQute.bnd.maven-4.2.0.jar (112 kB at 61 kB/s)
{code}
during day to day use of maven (i.e. during "interactive" mode).

Truth be told the only time this information is of any real value is when an error occur which my change does neither prevent or improve the current state. Also the progress of downloading is also still provided. Furthermore, this is an opt in mode which requires setting {{{{-Dorg.apache.maven.cli.transfer.ConsoleMavenTransferListener.quiet}}}}.

I hope this explains my take on this issue. :)

> Allow to suppress download messages in interactive mode
> -------------------------------------------------------
>
>                 Key: MNG-6605
>                 URL: https://issues.apache.org/jira/browse/MNG-6605
>             Project: Maven
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 3.6.0
>            Reporter: Gunnar Wagenknecht
>            Priority: Major
>             Fix For: waiting-for-feedback
>
>         Attachments: 2019-03-06_14-06-09.png
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When running Maven in batch mode (with option {{-B}}) it's possible to suppress download messages using "{{-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn}}"
> Example:
>  {{mvn clean install -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn}}
> When leaving out the {{-B}} option this no longer works.
> *Example:*
> {noformat}
> export MAVEN_OPTS='-Xmx1g -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss'
> mvn clean install
> {noformat}
> Prints out time stamps as configured but does not suppress download progress messages.
> *Expected:*
>  Suppressing "Downloaded" messages from the console output should be possible without requiring the "{{--batch-mode}}" command line argument.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)