Stephan van Hulst wrote:You should add a dependency on token.jar, and set its scope to runtime.
You can do all of this in the pom.xml.
Hi Stephan,
Thanks for replying.
I've tried this approach before, but the Class-Path in the executable jar's MANIFEST.MF still doesn't include "lib/token.jar". So when a user copies theirs into the lib directory, it isn't in the classpath and can't be found.
Relevant parts of pom.xml:
And here's the MANIFEST.MF from the decompiled jar:
Unfortunately, the token.jar isn't available at build time, so I just need it to exist on the class-path so when it IS copied into the 'lib' directory, it is recognized.