title: How I can upload an apk file to the nexus repository manager?
body: <p>I'm trying to publish an apk file to the maven.
  so in nexus repository manager (maven2 hosted) I can do this in some steps and
  here I can define file extension:</p>
  <p><a href="https://i.stack.imgur.com/2xGyM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2xGyM.png" alt="here I can define file extension" /></a></p>
  <p>It's work fine and I can download apk file from nexus repo:</p>
  <p><a href="https://i.stack.imgur.com/rFmlP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rFmlP.png" alt="enter image description here" /></a></p>
  <p>So now can I do same with pom.xml from cmd?
  Here is my pom.xml config:</p>
  <p><a href="https://i.stack.imgur.com/xZUyi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xZUyi.png" alt="enter image description here" /></a>
  
  4.0.0</p>
  <pre><code>  &lt;groupId&gt;android-maven-plugin&lt;/groupId&gt;
    &lt;artifactId&gt;android&lt;/artifactId&gt;
    &lt;packaging&gt;apk&lt;/packaging&gt;
    &lt;version&gt;2.0.0&lt;/version&gt;
    &lt;name&gt;my-maven&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
      
  
  &lt;distributionManagement&gt;
      &lt;repository&gt;
          &lt;id&gt;android&lt;/id&gt;
          &lt;name&gt;release softx&lt;/name&gt;
          &lt;url&gt;http://#################.com/repository/android/&lt;/url&gt;
      &lt;/repository&gt;
      &lt;snapshotRepository&gt;
          &lt;id&gt;android&lt;/id&gt;
          &lt;name&gt;snapshot softx&lt;/name&gt;
          &lt;url&gt;http://#################.com/repository/android-snapshot/&lt;/url&gt;
      &lt;/snapshotRepository&gt;
  &lt;/distributionManagement&gt;
  &lt;/project&gt;
  </code></pre>
  <p>And I get this after run mvn deploy:</p>
  <blockquote>
  <p>[INFO] Scanning for projects... [ERROR] [ERROR] Some problems were
  encountered while processing the POMs: [ERROR] Unknown packaging: apk
  @ line 7, column 14  @ [ERROR] The build could not read 1 project -&gt;
  [Help 1] [ERROR]    [ERROR]   The project
  android-maven-plugin:android:2.0.0
  (C:\search\meteor\androidapp\android\project\app\build\outputs\apk\release\pom.xml)
  has 1 error [ERROR]     Unknown packaging: apk @ line 7, column 14
  [ERROR] [ERROR] To see the full stack trace of the errors, re-run
  Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to
  enable full debug logging. [ERROR] [ERROR] For more information about
  the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1]
  <a href="http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException" rel="nofollow noreferrer">http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException</a></p>
  </blockquote>
  <p>If I use jar for packaging it's work fine. But I get a jar file in nexus and I can't use that.</p>
  <p><a href="https://i.stack.imgur.com/ahkfO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ahkfO.png" alt="enter image description here" /></a></p>