title: Signing apk with maven-jarsigner-plugin
body: <p>I followed <a href="http://www.simpligility.com/2010/07/sign-zipalign-and-to-market-to-market-with-maven/" rel="nofollow">this tutorial</a> and configured maven to sign my apk.</p>
  
  <p>Here is a part of my pom.xml</p>
  
  <pre><code>            &lt;!-- Maven plugin which is responsible for signing apks --&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-jarsigner-plugin&lt;/artifactId&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;signing&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;sign&lt;/goal&gt;
                          &lt;goal&gt;verify&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;inherited&gt;true&lt;/inherited&gt;
                      &lt;configuration&gt;
                          &lt;removeExistingSignatures&gt;true&lt;/removeExistingSignatures&gt;
                          &lt;archiveDirectory/&gt;
                          &lt;includes&gt;
                              &lt;include&gt;${project.build.directory}/eticapp-1.0.0-SNAPSHOT.apk&lt;/include&gt;
                          &lt;/includes&gt;
                          &lt;keystore&gt;d:\My Docs\KeyStore\EtickAppKeystore&lt;/keystore&gt;
                          &lt;alias&gt;ekey&lt;/alias&gt;
                          &lt;storepass&gt;1234abcd&lt;/storepass&gt;
                          &lt;keypass&gt;123abc&lt;/keypass&gt;
                          &lt;verbose&gt;true&lt;/verbose&gt;
                          &lt;arguments&gt;
                            &lt;argument&gt;-sigalg&lt;/argument&gt;&lt;argument&gt;MD5withRSA&lt;/argument&gt;
                            &lt;argument&gt;-digestalg&lt;/argument&gt;&lt;argument&gt;SHA1&lt;/argument&gt;
                          &lt;/arguments&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>Indeed when I am trying to execute the goals:</p>
  
  <pre><code>jarsigner:sign jarsigner:verify
  </code></pre>
  
  <p>I get an Exception about failing alias, which is clearly set.
  Any solutions for that?</p>
  
  <pre><code>Failed to execute goal org.apache.maven.plugins:maven-jarsigner-plugin:1.2:sign (default-cli) on project eticapp: The parameters 'alias' for goal org.apache.maven.plugins:maven-jarsigner-plugin:1.2:sign are missing or invalid -&gt; [Help 1]
  </code></pre>