title: no manifest section for signature file entry org/bouncycastle/mail/smime/SMIMEEnvelopedGenerator$EnvelopedGenerator.class
body: <p>I am new to maven, and still struggling with the basics.</p>
  <p>i am trying to run a jar file (that builds automatically by a maven project)
  my project includes libraries as jar files.</p>
  <p>i added the &quot;maven-shade-plugin&quot;
  but i got now this error:</p>
  <pre><code>$ java -jar create_pass_criteria-1.0-SNAPSHOT.jar
  java.lang.SecurityException: no manifest section for signature file entry org/bouncycastle/mail/smime/SMIMEEnvelopedGenerator$EnvelopedGenerator.class
          at sun.security.util.SignatureFileVerifier.verifySection(Unknown Source)
          at sun.security.util.SignatureFileVerifier.processImpl(Unknown Source)
          at sun.security.util.SignatureFileVerifier.process(Unknown Source)
          at java.util.jar.JarVerifier.processEntry(Unknown Source)
          at java.util.jar.JarVerifier.update(Unknown Source)
          at java.util.jar.JarFile.initializeVerifier(Unknown Source)
          at java.util.jar.JarFile.ensureInitialization(Unknown Source)
          at java.util.jar.JavaUtilJarAccessImpl.ensureInitialization(Unknown Source)
          at sun.misc.URLClassPath$JarLoader$2.getManifest(Unknown Source)
          at java.net.URLClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.access$100(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
  Error: A JNI error has occurred, please check your installation and try again
  Exception in thread &quot;main&quot;
  </code></pre>
  <p>this is my pom.xml :</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot;
           xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
           xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;org.example&lt;/groupId&gt;
      &lt;artifactId&gt;create_pass_criteria&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.im.automation&lt;/groupId&gt;
              &lt;artifactId&gt;reporting&lt;/artifactId&gt;
              &lt;version&gt;9.0.32&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.im.automation&lt;/groupId&gt;
              &lt;artifactId&gt;sec-services&lt;/artifactId&gt;
              &lt;version&gt;8.0.125-SNAPSHOT&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.im.automation&lt;/groupId&gt;
              &lt;artifactId&gt;systemtests-services&lt;/artifactId&gt;
              &lt;version&gt;9.0.32&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.im.automation&lt;/groupId&gt;
              &lt;artifactId&gt;systemtests-sec&lt;/artifactId&gt;
              &lt;version&gt;8.0.125-SNAPSHOT&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;properties&gt;
          &lt;maven.compiler.source&gt;1.8&lt;/maven.compiler.source&gt;
          &lt;maven.compiler.target&gt;1.8&lt;/maven.compiler.target&gt;
      &lt;/properties&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.6&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;phase&gt;package&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;shade&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;filters&gt;
                      &lt;filter&gt;
                          &lt;excludes&gt;
                              &lt;exclude&gt;META-INF/*.SF&lt;/exclude&gt;
                              &lt;exclude&gt;META-INF/*.RSA&lt;/exclude&gt;
                              &lt;exclude&gt;META-INF/*.INF&lt;/exclude&gt; 
                          &lt;/excludes&gt;
                      &lt;/filter&gt;
                  &lt;/filters&gt;
                  &lt;manifest&gt;
                      &lt;attribute name=&quot;Main-Class&quot; value=&quot;Create_pass_criteria.Main&quot;/&gt;
                  &lt;/manifest&gt;
              &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.4&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;archive&gt;
                          &lt;index&gt;true&lt;/index&gt;
                          &lt;manifest&gt;
                              &lt;addClasspath&gt;true&lt;/addClasspath&gt;
                              &lt;classpathPrefix&gt;target/&lt;/classpathPrefix&gt;
                              &lt;mainClass&gt;
                                  Create_pass_criteria.Main
                              &lt;/mainClass&gt;
                          &lt;/manifest&gt;
                      &lt;/archive&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;validate&lt;/phase&gt;
                      &lt;configuration&gt;
                          &lt;source&gt;1.8&lt;/source&gt;
                          &lt;target&gt;1.8&lt;/target&gt;
                          &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
                          &lt;mainClass&gt;Create_pass_criteria.Main&lt;/mainClass&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  <p>i appreciate any help or ideas.
  thank you very much.</p>