#1059147 maven: successful invocation of mvn writes unexpeceted output to stderr

#1059147#5
Date:
2023-12-20 14:13:23 UTC
From:
To:
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.

#1059147#10
Date:
2023-12-21 05:05:25 UTC
From:
To:
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