I use maven-bundle-plugin to create an OSGIed version of a bunch of Jar files, some of which are signed. This seems to create a problem later in my assembly with the following error message.
Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
I think this is due to the generated .RSA and .SF files that are embedded. How to specify an exception of these files in my configuration? Below is my current configuration.
<configuration>
<instructions>
<Export-Package>!javax.servlet.*,!org.apache.commons.logging,*</Export-Package>
<Embed-Dependency>*</Embed-Dependency>
<Embed-Directory>OSGI-INF/lib</Embed-Directory>
<Embed-Transitive>true</Embed-Transitive>
<Import-Package>!javax.jms,!javax.resource.*, !junit.*,!net.sf.ehcache,!net.spy.memcached,!org.apache.avalon.framework.logger,*</Import-Package>
</instructions>
</configuration>
source
share