title: Maven Jarsigning using keystore
body: <p>Have found <code>maven</code> to use hard for simple things like <code>jar-signing</code>..May be I am doing this in wrong way,Correct me.</p>
  
  <p>I have genereated a <code>keystore</code> file and it is located in my <code>src/main/keystore/mykey.keystore</code>...</p>
  
  <p>My POM looks like :</p>
  
  <pre><code>  &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;   
          &lt;executions&gt;
          &lt;execution&gt;
          &lt;goals&gt;
              &lt;goal&gt;sign&lt;/goal&gt;
          &lt;/goals&gt;
          &lt;/execution&gt;
         &lt;/executions&gt;
         &lt;configuration&gt;
          &lt;keystore&gt;src/main/keystore/mykey.keystore&lt;/keystore&gt;
          &lt;alias&gt;aliasname&lt;/alias&gt;
          &lt;storepass&gt;password&lt;/storepass&gt;         
      &lt;/configuration&gt;        
      &lt;/plugin&gt;
          &lt;plugin&gt;
           &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;      
      &lt;executions&gt;
      &lt;execution&gt;
      &lt;id&gt;jar-with-dependencies&lt;/id&gt;
      &lt;phase&gt;package&lt;/phase&gt;
      &lt;goals&gt;
        &lt;goal&gt;single&lt;/goal&gt;
      &lt;/goals&gt;       
      &lt;configuration&gt;                         
         &lt;descriptorRefs&gt;
            &lt;descriptorRef&gt;jar-with-dependencies&lt;/descriptorRef&gt;
         &lt;/descriptorRefs&gt;           
       &lt;appendAssemblyId&gt;false&lt;/appendAssemblyId&gt;
       &lt;/configuration&gt;
      &lt;/execution&gt;     
    &lt;/executions&gt;      
  &lt;/plugin&gt;   
  </code></pre>
  
  <p>when i run <code>mvn:install</code>  ..</p>
  
  <pre><code> Executing: cmd.exe /X /C ""C:\Program Files (x86)\Java\jdk1.6.0\jre\..  
   \bin\jarsigner.exe" -verify S:\Test-API\testapplet\target\appletbio-0.0.1-SNAPSHOT.jar"
   [info] jar is unsigned. (signatures missing or not parsable)
   [INFO] jarsigner: unable to sign jar: java.util.zip.ZipException: duplicate entry:    
   META-INF/maven/    
  </code></pre>
  
  <p>...</p>
  
  <pre><code> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.3.2:sign 
   (default) on project
  </code></pre>