Stefan Oehme created MNG-8297: --------------------------------- Summary: Color output no longer possible on dumb terminals Key: MNG-8297 URL: https://issues.apache.org/jira/browse/MNG-8297 Project: Maven Issue Type: Bug Components: Logging Affects Versions: 4.0.x-candidate Reporter: Stefan Oehme
We have a couple of integration tests for how our tool captures Maven console output, including color. These tests capture Maven's output in a ByteArrayOutputStream, which results in a "dumb terminal". With Maven 3.x, we still get color output. With the latest 4.x nightlies, the output is no longer colored. I dug through the code a bit and it seems to be related to the change to JLine. I tried adding `-Djansi.mode=force` to the MAVEN_OPTS, but that didn't bring coloring back. You can try this yourself by doing `export TERM=dumb`, followed by any Maven command. The output is uncolored, even though Maven itself says `Message scheme: color` -- This message was sent by Atlassian Jira (v8.20.10#820010)