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

Charles Oliver Nutter commented on MDEP-974:
--------------------------------------------

This was part of, but not the primary cause of, an issue in JRuby's jar 
dependency management: [https://github.com/jruby/jruby/issues/8606.]

It seems like an audit might be needed to ensure other file output from Maven 
is not including ANSI escape sequences. ANSI color etc should only be emitted 
to a terminal, or if explicitly turned on for non-terminals.

> ANSI color sequences are output to files
> ----------------------------------------
>
>                 Key: MDEP-974
>                 URL: https://issues.apache.org/jira/browse/MDEP-974
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>            Reporter: Charles Oliver Nutter
>            Priority: Major
>         Attachments: Screenshot 2025-02-06 at 17.38.09.png
>
>
> In 2017, the output of dependency:list was modified to use color to offset 
> the " -- module ..." portion of the resolved resource, following a previous 
> change in 2016 to add that text with Java module information. However this 
> colorized output is emitted to both the consoleĀ *and* any output file. See 
> the attached screenshot.
> This output is frequently parsed by other tools to get the list of 
> dependencies for a project, and being text output it should not contain ANSI 
> color escape sequences.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to