Bug#1059147: maven: successful invocation of mvn writes unexpeceted output to stderr
tony mancill
tmancill at debian.org
Thu Dec 21 05:05:25 GMT 2023
On Wed, Dec 20, 2023 at 03:13:23PM +0100, Clemens Ballarin wrote:
> Package: maven
> Version: 3.8.7-1
> Severity: normal
> X-Debbugs-Cc: debian-bugreports at ankordata.de
>
> 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
More information about the pkg-java-maintainers
mailing list