I am using mqtt
as a client to get messagaes from the mqtt broker.
Previously I had 0.2.1 which had a issue in clientId generation (greater than 23 characters would fail)
I saw the fix is done in later versions, so I upgraded to 1.0.1. I downloaded the 1.0.1 jar from the below repository
eclipse repo [/content/repositories/paho-releases/org/eclipse/paho/org.eclipse.paho.client.mqttv3/1.0.1/]
I get: Invalid signature file digest for Manifest main attribute
I googled and found solutions to fix the issue. I removed the META-INF and zipped the jar again. It solved my problem for the time being. But this should not be done as I understand.
I had found other fixes which didn't help, such as putting the below configuration in my pom.
<pre>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</pre>
Later I ran jarsigner -verify org.eclipse.paho.client.mqttv3-1.0.1.jar
I got the following:
jar verified.
Warning:
This jar contains entries whose signer certificate will expire within six months.
The signer certificate expiring in 6 months.
I am not sure if I should be downloading the same jar or not.