title: Android with maven? Apk unknown
body: <p>Cannot get Android to work with maven. What could be the problem (generated from maven quickstart archetype):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;asd&lt;/groupId&gt;
      &lt;artifactId&gt;asd&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;apk&lt;/packaging&gt;
      &lt;name&gt;asd&lt;/name&gt;
  
      &lt;properties&gt;
          &lt;platform.version&gt;4.0.3&lt;/platform.version&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.android&lt;/groupId&gt;
              &lt;artifactId&gt;android&lt;/artifactId&gt;
              &lt;version&gt;${platform.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;com.jayway.maven.plugins.android.generation2&lt;/groupId&gt;
                  &lt;artifactId&gt;android-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.2.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;androidManifestFile&gt;${project.basedir}/AndroidManifest.xml&lt;/androidManifestFile&gt;
                      &lt;assetsDirectory&gt;${project.basedir}/assets&lt;/assetsDirectory&gt;
                      &lt;resourceDirectory&gt;${project.basedir}/res&lt;/resourceDirectory&gt;
                      &lt;nativeLibrariesDirectory&gt;${project.basedir}/src/main/native&lt;/nativeLibrariesDirectory&gt;
                      &lt;sdk&gt;
                          &lt;platform&gt;15&lt;/platform&gt;
                      &lt;/sdk&gt;
                      &lt;emulator&gt;
                          &lt;avd&gt;Android4&lt;/avd&gt;
                      &lt;/emulator&gt;
                      &lt;undeployBeforeDeploy&gt;true&lt;/undeployBeforeDeploy&gt;
                  &lt;/configuration&gt;
                  &lt;extensions&gt;true&lt;/extensions&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.3.2&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.6&lt;/source&gt;
                      &lt;target&gt;1.6&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Leads to:</p>
  
  <pre><code>Project build error: Unknown packaging: apk
  </code></pre>
  
  <p>+</p>
  
  <pre><code>Project build error: Unresolveable build extension: Plugin 
  com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.2.0 or one of its 
  dependencies could not be resolved: Failed to collect dependencies for 
  com.jayway.maven.plugins.android.generation2:android-maven-plugin:jar:3.2.0 ()
  </code></pre>