<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Key on Micha Kops&#39; Tech Notes</title>
    <link>https://www.hascode.com/tags/key/</link>
    <description>Recent content in Key on Micha Kops&#39; Tech Notes</description>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>Copyright © 2010 - 2025 Micha Kops. #e9d956c0c0154a221ad83c925346a8fa0e72f866</copyright>
    <lastBuildDate>Sat, 17 Apr 2010 00:00:00 +0200</lastBuildDate>
    <atom:link href="https://www.hascode.com/tags/key/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Signing APK with the Maven-Jar-Signer Plugin</title>
      <link>https://www.hascode.com/signing-apk-with-the-maven-jar-signer-plugin/</link>
      <pubDate>Sat, 17 Apr 2010 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/signing-apk-with-the-maven-jar-signer-plugin/</guid>
      <description>&lt;div id=&#34;preamble&#34;&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;There is a nice Maven plugin helping you signing your Android app – the &lt;em&gt;Maven Jar Signer Plugin&lt;/em&gt;. If you want to learn more about Maven integration in an android project take a look at &lt;a href=&#34;https://www.hascode.com/how-to-integrate-android-development-tools-and-maven/&#34;&gt;this article&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_maven_profile_setup&#34;&gt;Maven Profile Setup&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Add the following code to your &lt;em&gt;pom.xml&lt;/em&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;highlight&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34;?&amp;gt;
&amp;lt;profiles&amp;gt;
    &amp;lt;profile&amp;gt;
        &amp;lt;id&amp;gt;sign&amp;lt;/id&amp;gt;
        &amp;lt;build&amp;gt;
            &amp;lt;plugins&amp;gt;
                &amp;lt;plugin&amp;gt;
                    &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;
                    &amp;lt;artifactId&amp;gt;maven-jarsigner-plugin&amp;lt;/artifactId&amp;gt;
                    &amp;lt;version&amp;gt;1.2&amp;lt;/version&amp;gt;
                    &amp;lt;executions&amp;gt;
                        &amp;lt;execution&amp;gt;
                            &amp;lt;id&amp;gt;signing&amp;lt;/id&amp;gt;
                            &amp;lt;goals&amp;gt;
                                &amp;lt;goal&amp;gt;sign&amp;lt;/goal&amp;gt;
                            &amp;lt;/goals&amp;gt;
                            &amp;lt;phase&amp;gt;package&amp;lt;/phase&amp;gt;
                            &amp;lt;inherited&amp;gt;true&amp;lt;/inherited&amp;gt;
                            &amp;lt;configuration&amp;gt;
                                &amp;lt;archiveDirectory/&amp;gt;
                                &amp;lt;includes&amp;gt;
                                    &amp;lt;include&amp;gt;target/*.apk&amp;lt;/include&amp;gt;
                                &amp;lt;/includes&amp;gt;
                                &amp;lt;keystore&amp;gt;path/to/keystore&amp;lt;/keystore&amp;gt;
                                &amp;lt;storepass&amp;gt;storepasword&amp;lt;/storepass&amp;gt;
                                &amp;lt;keypass&amp;gt;keypassword&amp;lt;/keypass&amp;gt;
                                &amp;lt;alias&amp;gt;key-alias&amp;lt;/alias&amp;gt;
                            &amp;lt;/configuration&amp;gt;
                        &amp;lt;/execution&amp;gt;
                    &amp;lt;/executions&amp;gt;
                &amp;lt;/plugin&amp;gt;
                &amp;lt;plugin&amp;gt;
                    &amp;lt;groupId&amp;gt;com.jayway.maven.plugins.android.generation2&amp;lt;/groupId&amp;gt;
                    &amp;lt;artifactId&amp;gt;maven-android-plugin&amp;lt;/artifactId&amp;gt;
                    &amp;lt;inherited&amp;gt;true&amp;lt;/inherited&amp;gt;
                    &amp;lt;configuration&amp;gt;
                        &amp;lt;sign&amp;gt;
                            &amp;lt;debug&amp;gt;false&amp;lt;/debug&amp;gt;
                        &amp;lt;/sign&amp;gt;
                    &amp;lt;/configuration&amp;gt;
                &amp;lt;/plugin&amp;gt;
            &amp;lt;/plugins&amp;gt;
        &amp;lt;/build&amp;gt;
    &amp;lt;/profile&amp;gt;
&amp;lt;/profiles&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</description>
    </item>
  </channel>
</rss>
