My java program is packaged in a jar file and makes use of an external jar library, bouncy castle. My code compiles fine, but running the jar leads to the following error:>
I faced the same issue, after reference somewhere, it worked as below changing:
org.apache.maven.plugins maven-shade-plugin 3.2.1 false package shade *:* META-INF/*.SF META-INF/*.DSA META-INF/*.RSA