Dear Maintainer,
Maven writes an ansi control sequence to an otherwise empty stderr:
$ mvn --help 2>&1 >/dev/null | hexdump -C
00000000 1b 5b 30 6d |.[0m|
00000004
Apache's upstream version does not exhibit this behaviour, there is no output:
$ PATH=${HOME}/software/apache-maven-3.8.7/bin:${PATH} mvn --help 2>&1 >/dev/null | hexdump -C
This is also a regression from Debian 11.8 and Maven 3.6.3-5.
It complicates a somewhat pedantic test scenario. Fix would be appreciated.
This appears related to (and perhaps a duplicate of) #1039607 [1]. As I noted there, I think the strategy should be to revert the default behavior to match upstream and add functionality as needed for colorized output in pdebuild. I will try to allocate some time to work on this next week. Thanks, tony [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1039607