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

Clemens Ballarin debian-bugreports at ankordata.de
Wed Dec 20 14:13:23 GMT 2023


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.


-- System Information:
Debian Release: 12.4
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-15-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages maven depends on:
ii  default-jre-headless [java7-runtime-headless]     2:1.17-74
ii  libjansi-java                                     2.4.0-2
ii  libmaven3-core-java                               3.8.7-1
ii  libwagon-file-java                                3.5.3-1
ii  libwagon-http-shaded-java                         3.5.3-1
ii  openjdk-11-jre-headless [java7-runtime-headless]  11.0.21+9-1~deb11u1
ii  openjdk-17-jre-headless [java7-runtime-headless]  17.0.9+9-1~deb12u1

maven recommends no packages.

maven suggests no packages.

-- no debconf information



More information about the pkg-java-maintainers mailing list