The default class loader cannot access classes in JAR files that are located inside another JAR file. I suggest you take a look at the shade
Maven plugin. That will put not only your classes in the JAR file, but also the contents of all your dependencies. I prefer it over OneJar because with a shaded JAR file, you can still access any class inside.