I have a maven project selenium webdriver test cases, for which I am able to create a jar file but when I try executing in command prompt I get this Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/maven/shared/invoker/MavenInvocationException exception.
Asked
Active
Viewed 687 times
0
-
[I was not packaging the jar file with all the dependenciesSolution is to use a plugin to package all your dependencies within run time](https://stackoverflow.com/questions/10568275/noclassdeffounderror-on-maven-dependency) – ryan yang Aug 19 '19 at 16:41