Bug#944065: checkstyle: Wrapper script run fails due to unresolved picocli dependency

Timo Kalliomäki timoka10 at gmail.com
Sun Nov 3 18:28:03 GMT 2019


Package: checkstyle
Version: 8.15-1
Severity: normal

Dear Maintainer,

checkstyle can not be run with the wrapper script (/usr/bin/checkstyle).
The following happens:

$ checkstyle -c checkstyle.xml src/
[warning] /usr/bin/checkstyle: JVM flavor 'sunmin5' not understood
[warning] /usr/bin/checkstyle: Unable to locate commons-cli in 
/usr/share/java
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on 
-Dswing.aatext=true
Error: Unable to initialize main class com.puppycrawl.tools.checkstyle.Main
Caused by: java.lang.NoClassDefFoundError: 
picocli/CommandLine$ParameterException

Adding picocli to the find_jars command arguments in the wrapper script
makes the script work.

Br,
Timo

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

Kernel: Linux 4.19.0-6-amd64 (SMP w/4 CPU cores)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8), 
LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages checkstyle depends on:
ii  antlr                                             2.7.7+dfsg-9.2
ii  default-jre-headless [java7-runtime-headless]     2:1.11-71
ii  java-wrappers                                     0.3
ii  libantlr4-runtime-java                            4.7.2-1
ii  libcommons-beanutils-java                         1.9.3-1
ii  libcommons-lang3-java                             3.8-2
ii  libcommons-logging-java                           1.2-2
ii  libguava-java                                     19.0-1
ii  libpicocli-java                                   3.9.2-1
ii  openjdk-11-jre-headless [java7-runtime-headless]  11.0.5+10-1~deb10u1

checkstyle recommends no packages.

Versions of packages checkstyle suggests:
ii  ant-optional  1.10.5-2
pn  junit4        <none>

-- no debconf information



More information about the pkg-java-maintainers mailing list