Invalid signature file digest for Manifest main attributes
Hi,
I am trying to build our project using maven. I have included multiple dependency jars in pom.xml and I am trying to build distribution jar using assembly:assembly goal. The command "mvn assembly:assembly" resulted in the below error.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.4:assembly (default-cli) on project my-plugin: Execution default-cli of goal org.apache.maven.plugins:maven-assembly-plugin:2.4:assembly failed: Invalid signature file digest for Manifest main attributes -> [Help 1]
The presence of OvmClient.jar was causing this issue. This is a signed jar having the files ORACLE_C.SF and ORACLE_C.RSA which seems to provide the signature for the jar. I tried commenting/removing the jar in dependencies and mvn assembly:assembly command worked fine. To make it work with this particular jar as it is needed, I tried by adding excludes in dependency, assembly and even shade plugin configuration in pom.xml to exclude METAINF/ORACLE_C.SF and .RSA files of that jar as shown below, but still the same error exists.