title: Android Maven Plugin apklib Mojo doesn't include compiled R in resulting apklib
body: <p>I'm trying to extract the Android <code>/res</code> folder into a separate project that's included in my main project as an apklib dependency. The problem is that while the contents of the <code>/res</code> are included in the resulting <code>.apklib</code>, the compiled <code>R.class</code> is not. Even more confusing is that the <code>mvn clean install</code> command generates the <code>.apklib</code> as well as a <code>.jar</code> file, and the jar file has <code>R.class</code>, but none of the contents of the <code>/res</code> folder. How do I generate a single package (either .jar or .apklib) that contains all of my resources as well as the compiled classes?</p>
  
  <p><strong>pom.xml</strong> </p>
  
  <pre><code>&lt;packaging&gt;apklib&lt;/packaging&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;configuration&gt;
      &lt;attachSources&gt;true&lt;/attachSources&gt;
      &lt;sdk&gt;
        &lt;platform&gt;12&lt;/platform&gt;
      &lt;/sdk&gt;
    &lt;/configuration&gt;
  &lt;plugin&gt;
  </code></pre>
  
  <p>Which generates the following</p>
  
  <p><strong>.jar</strong></p>
  
  <pre><code>./morseflash-resources.jar
    com/.../R.class    
  </code></pre>
  
  <p><strong>.apklib</strong></p>
  
  <pre><code>./morseflash-resorces.apklib
    META-INF
    AndroidManifest.xml
    res/
        layout/
        values/
  </code></pre>
  
  <p>I'd like all this content in a single file, and I'd like to be able to list it as a dependency in my main Android project. Is this possible, and if so, how could I accomplish it?</p>