[jira] [Commented] (MNG-6605) Unable to suppress download messages in interactive mode

2019-03-30 Thread Michael Osipov (JIRA)


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

Michael Osipov commented on MNG-6605:
-

I still don't understand your problem and will not merge the PR. You want batch 
mode with colors. I recommended to force colors, did you try that?

> Unable 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.
> *Motivation:*
>  Because Travis CI supports colorized output in build logs I'd like to avoid 
> batch mode.



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


[jira] [Commented] (MNG-6605) Unable to suppress download messages in interactive mode

2019-03-27 Thread JIRA


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

Raymond Augé commented on MNG-6605:
---

I've submitted a potential solution here 
https://github.com/apache/maven/pull/239 

> Unable 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.
> *Motivation:*
>  Because Travis CI supports colorized output in build logs I'd like to avoid 
> batch mode.



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


[jira] [Commented] (MNG-6605) Unable to suppress download messages in interactive mode

2019-03-06 Thread Michael Osipov (JIRA)


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

Michael Osipov commented on MNG-6605:
-

You cannot suppress them unless you go in batch mode. if you want to retain 
colors, you have to force them because stdout is not attached to a tty.

> Unable 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
>
>
> 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.
> *Motivation:*
>  Because Travis CI supports colorized output in build logs I'd like to avoid 
> batch mode.



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


[jira] [Commented] (MNG-6605) Unable to suppress download messages in interactive mode

2019-03-06 Thread Gunnar Wagenknecht (JIRA)


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

Gunnar Wagenknecht commented on MNG-6605:
-

>From looking at the output it seems that {{ConsoleMavenTransferListener}} is 
>used in addition to {{Slf4jMavenTransferListener}} or some other listener that 
>prints "Downloading/Downloaded" messages to stdout. At least, that's how Maven 
>output looks like in the Travis CI build logs. Please have a look the attached 
>screenshot. 

!2019-03-06_14-06-09.png! 

I run the Maven command without {{--batch-mode}} and I do get those 
"Downloading/Downloaded" messages. However, I'd like a way to suppress them 
without having to specify {{--batch-mode}}.


> Unable 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
>
>
> 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.
> *Motivation:*
>  Because Travis CI supports colorized output in build logs I'd like to avoid 
> batch mode.



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


[jira] [Commented] (MNG-6605) Unable to suppress download messages in interactive mode

2019-03-06 Thread Michael Osipov (JIRA)


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

Michael Osipov commented on MNG-6605:
-

{{Slf4jMavenTransferListener}} is not used in interactive mode. It writes to 
[{{stdout}}|https://github.com/apache/maven/blob/master/maven-embedder/src/main/java/org/apache/maven/cli/transfer/ConsoleMavenTransferListener.java].

It is not clear what you really request.

> Unable 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
>
> 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}}
> This does not work in non-batch mode.
> *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.
> *Motivation:*
>  Because Travis CI supports colorized output in build logs I'd like to avoid 
> batch mode.



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