Mandatory valid signature is missing

Observation

When trying to start a custom extension (using the Enterprise Extension SDK) built with maven the hivemq.log shows statements like the following and the extension fails to start:

2022-01-05 20:03:01,726 WARN - Unable to load enterprise extension with id "sample-extension". Mandatory valid signature is missing.

Consequence

A failure to verify an extensionā€™s signature prevents HiveMQ from starting it.

Solution

Make sure the sign task is the last to be performed and content of the resulting jar is not further modified.