When I build a Jar in intellij (using "build artifacts...") it generates a jar that has invalid signature. To solve it I always need to go inside the jar to META-INF folder and delete ORACLE_J.SF and ORACLE_J.RSA.
Any idea why it happens/how to solve it?