I've attached a simple project that seems like it should work, but I get
[testng] Exception in thread "main" java.lang.NoClassDefFoundError:
[testng] Caused by: java.lang.ClassNotFoundException:
I print the classpath is printed before TestNG is run, and it's clear that
JCommander is in the classpath. Now from the size, the testng-6.3.1.jar
that's in the Maven repo looks like the distribution jar that has no BSH or
Guice. BSH is on the classpath. If you add Guice, it still fails. If you
instead use the full testng-6.3.1.jar that's distributed in the TestNG zip,
it works fine.
Please look into this.