You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2021/07/04 14:36:00 UTC
[jira] [Assigned] (MNG-6241) Load -Dstyle.color from system
properties also
[ https://issues.apache.org/jira/browse/MNG-6241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov reassigned MNG-6241:
-----------------------------------
Assignee: Michael Osipov
> Load -Dstyle.color from system properties also
> ----------------------------------------------
>
> Key: MNG-6241
> URL: https://issues.apache.org/jira/browse/MNG-6241
> Project: Maven
> Issue Type: Improvement
> Affects Versions: 3.5.0
> Reporter: Thorsten Glaser
> Assignee: Michael Osipov
> Priority: Major
>
> Coloured output does not look very nice in a Jenkins logfile *and* breaks some plugins we use, therefore I wish to disable it programmatically.
> However, looking at the source, I find it can only be disabled by passing the command-line options -B or -l, but not from settings.xml or via MAVEN_OPTS in the environment.
> I’ve worked around this by using dpkg-divert to move the mvn binary away and placing this…
> {{{
> # cat /usr/share/maven/bin/mvn
> #!/bin/mksh-static
> exec /usr/share/maven/bin/mvn.dpkg-dist -B "$@"
> }}}
> … in its stead, but that’s creepy at best. Please implement a setting, ideally for settings.xml *and* MAVEN_OPTS, to disable colour.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)