You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tom Wieczorek (JIRA)" <ji...@apache.org> on 2017/11/08 11:51:00 UTC

[jira] [Commented] (MNG-6220) Add CLI options to control color output

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

Tom Wieczorek commented on MNG-6220:
------------------------------------

I'm somehow not able to see any change when using {{-Dstyle.color=XXX}} with Maven 3.5.2. It always uses the auto detection. Can somebody confirm that it's working? I tried {{never}} at the terminal and had colors. I tried {{always}} when piping, and got no colors. I also tried some bogus value to trigger the exception, but to no avail.

I tried both {{MAVEN_OPTS}} and as an argument to {{mvn}}.

{noformat}
Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T09:58:13+02:00)
Maven home: /opt/apache-maven-3.5.2
Java version: 1.8.0_151, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux", version: "4.10.0-37-generic", arch: "amd64", family: "unix"
{noformat}


> Add CLI options to control color output
> ---------------------------------------
>
>                 Key: MNG-6220
>                 URL: https://issues.apache.org/jira/browse/MNG-6220
>             Project: Maven
>          Issue Type: New Feature
>            Reporter: Manuel Ryan
>            Assignee: Robert Scholte
>             Fix For: 3.5.2
>
>
> Currently, the only way to enable/disable color output is to use the batch-mode or log-file options.
> If a user wants colored output but no interactivity (ie: jenkins environment with the ansicolor plugin), there is no CLI option combination to support the use-case.
> I propose to add an option to control output coloring directly.
> {noformat}
> --color=enabled <- color output always enabled
> --color=disabled <- color output always disabled
> --color=auto <- current behavior (default)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)