Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the ECLIPSEF.RSA and ECLIPSEF.SF in a java jar file?

I have a Maven project which I'm developing in IntelliJ. When I build a .jar file from this project (an artifact which I need to debug my Spark jobs) there are these two files in the .jar file:

 /META-INF/ECLIPSEF.SF
 /META-INF/ECLIPSEF.RSA

What are these files and why they end up in my jar file? I am asking because they are preventing my Spark jobs from running.

like image 905
Milen Kovachev Avatar asked Mar 22 '26 04:03

Milen Kovachev


1 Answers

Are you using the maven shade plugin? Those are jar signatures, which ensure that the jar has not been tampered with. If you're using the maven-shade-plugin, you need to strip them out because you are intentionally changing the jar:

<filter>
    <artifact>*:*</artifact>
    <excludes>
        <exclude>META-INF/*.SF</exclude>
        <exclude>META-INF/*.DSA</exclude>
        <exclude>META-INF/*.RSA</exclude>
    </excludes>
</filter>
like image 196
Darth Android Avatar answered Mar 24 '26 18:03

Darth Android



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!