title: Maven: upload and download zip file to nexus repository
body: <p>I have uploaded a zip file to a local nexus repository using pom. It appears to have uploaded correctly. I then try to download it in another project using:</p>
  
  <pre><code>&lt;project&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;com.foo&lt;/groupId&gt;
  
    &lt;artifactId&gt;projectusingofficestuff&lt;/artifactId&gt;
    &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
  
    &lt;build&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;copy-dependency&lt;/id&gt;
              &lt;phase&gt;compile&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;unpack&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;artifactItems&gt;
                  &lt;artifactItem&gt;
                    &lt;groupId&gt;com.foo&lt;/groupId&gt;
                    &lt;artifactId&gt;officestuff&lt;/artifactId&gt;
                    &lt;type&gt;zip&lt;/type&gt;
                    &lt;version&gt;1.0.0-RELEASE&lt;/version&gt;
                    &lt;overWrite&gt;true&lt;/overWrite&gt;
                    &lt;outputDirectory&gt;target/unpacked&lt;/outputDirectory&gt;
                  &lt;/artifactItem&gt;
                &lt;/artifactItems&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>When I try the download, I get:</p>
  
  <pre><code>[DEBUG]   (s) remoteRepos = [       id: nexus
        url: http://repository/nexus/repository/maven-public
     layout: default
  snapshots: [enabled =&gt; false, update =&gt; daily]
   releases: [enabled =&gt; true, update =&gt; daily]
  ]
  [DEBUG]   (f) silent = false
  [DEBUG] -- end configuration --
  [INFO] Configured Artifact: com.foo:officestuff:1.0.0-RELEASE:zip
  [DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://repository/nexus/repository/maven-public as mike
  Downloading: http://repository/nexus/repository/maven-public/com/foo/officestuff/1.0.0-RELEASE/officestuff-1.0.0-RELEASE.zip
  [DEBUG] Writing resolution tracking file /home/mike/.m2/repository/com/foo/officestuff/1.0.0-RELEASE/officestuff-1.0.0-RELEASE.zip.lastUpdated
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 0.763s
  [INFO] Finished at: Wed Jan 04 16:13:20 EST 2017
  [INFO] Final Memory: 20M/962M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:unpack (copy-dependency) on project projectusingofficestuff: Unable to find artifact. Could not find artifact com.foo:officestuff:zip:1.0.0-RELEASE in nexus (http://repository/nexus/repository/maven-public)
  </code></pre>
  
  <p>If I directly search the repository using:
  <a href="http://repository/nexus/repository/maven-public/com/foo/officestuff/1.0.0-RELEASE/officestuff-1.0.0-RELEASE.zip?describe" rel="nofollow noreferrer">http://repository/nexus/repository/maven-public/com/foo/officestuff/1.0.0-RELEASE/officestuff-1.0.0-RELEASE.zip?describe</a></p>
  
  <p>It finds the artifact and returns what looks like a correct response. Any idea why would the maven build fail to find it?</p>