Bug#895886: testng: jcommander classes not found

olivier sallou osallou at debian.org
Tue Apr 17 09:33:05 BST 2018


Package: testng
Version: 6.9.12-2
Severity: important

Dear Maintainer,

while trying to use testng to update package htsjdk (using gradle),
I face errors about jcommander not being found when running tests

Task :compileTestJava actions class loader hash:
1526b3b109d06b230b32697697c7e0ca
Passing through org.scala-lang:scala-library:jar:2.11.x
Passing through com.google.jimfs:jimfs:jar:debian
Passing through com.google.jimfs:jimfs-parent:jar:debian
Passing through org.testng:testng:jar:debian
Passing through com.google.guava:guava:jar:debian
Passing through com.google.guava:guava-parent:jar:debian
Passing through org.beanshell:bsh:jar:debian
Passing through com.beust:jcommander:jar:1.x
POM relocation to an other version number is not fully supported in Gradle
: com.beust:jcommander:1.x relocated to com.beust:jcommander:debian.
Please update your dependency to directly use the correct version
'com.beust:jcommander:debian'.
Resolution will only pick dependencies of the relocated element.  Artifacts
and other metadata will be ignored.
...
Caused by: java.lang.NoClassDefFoundError:
com/beust/jcommander/ParameterException
at
org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:95)
at
org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:88)
at
org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:61)

I see in gradle logs that jcommander is not added in the classpath, so
there may be a dependency management issue with jcommander.

It seems there are resolution issues I did not face in the past.
Don't know if issue is testng or jcommander related as I see jcommander was
updated not so long ago.


-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.4.0-116-generic (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C
(charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages testng depends on:
ii  libbsh-java         2.0b4-19
ii  libjcommander-java  1.71-1

Versions of packages testng recommends:
ii  ant                 1.10.3-1
ii  junit4              4.12-6
ii  libyaml-snake-java  1.20-1

testng suggests no packages.

-- no debconf information
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20180417/0b4ae365/attachment.html>


More information about the pkg-java-maintainers mailing list