title: Unable to find artifact from artifactory
body: <p>I am using JFrog artifactory 3.2.1.1 with Maven 3.2.1.</p>
  
  <p>I uploaded a built project that exists in libs-snapshot-local under the repository browser. If I browse to com.foo.project, I will see the project-1.0-20151113.133436-1.jar file and pom and metadata in the artifactory browser.</p>
  
  <p>Even accessing <a href="http://example.com:8081/artifactory/webapp/browserepo.html?42&amp;pathId=libs-snapshot-local:com/foo/project/1.0-SNAPSHOT/project-1.0-20151113.133436-1.jar" rel="noreferrer">http://example.com:8081/artifactory/webapp/browserepo.html?42&amp;pathId=libs-snapshot-local:com/foo/project/1.0-SNAPSHOT/project-1.0-20151113.133436-1.jar</a> shows me the jar file inside. </p>
  
  <p>I used the settings.xml generator from the artifactory to generate the <code>&lt;repository&gt;</code> tag that I use in the following pom.xml:</p>
  
  <pre><code>&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;com.foo.bar&lt;/groupId&gt;
    &lt;artifactId&gt;exampleApp&lt;/artifactId&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;exampleApp&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;3.8.1&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
    &lt;repositories&gt;
      &lt;repository&gt;
        &lt;snapshots /&gt;
        &lt;id&gt;snapshots&lt;/id&gt;
        &lt;name&gt;libs-snapshot&lt;/name&gt;
        &lt;url&gt;http://example.foo:8081/artifactory/libs-snapshot&lt;/url&gt;
      &lt;/repository&gt;
    &lt;/repositories&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;unpack&lt;/id&gt;
              &lt;phase&gt;prepare-package&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;project&lt;/artifactId&gt;
                    &lt;version&gt;1.0&lt;/version&gt;
                    &lt;type&gt;jar&lt;/type&gt;
                    &lt;includes&gt;myFolder&lt;/includes&gt;
                    &lt;outputDirectory&gt;${project.build.directory}/newFolder/js/gmoketest&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>I just get:</p>
  
  <blockquote>
    <p>Failed to execute goal
    org.apache.maven.plugins:maven-dependency-plugin:2.8:unpack (unpack)
    on project exampleApp: Unable to find artifact. Failure to find
    com.foo:project:jar:1.0 in
    <a href="http://example.com:8081/artifactory/libs-snapshot" rel="noreferrer">http://example.com:8081/artifactory/libs-snapshot</a> was cached in the
    local repository, resolution will not be reattempted until the update
    interval of snapshots has elapsed or updates are forced</p>
  </blockquote>
  
  <p>And if I change
            <a href="http://example.foo:8081/artifactory/libs-snapshot" rel="noreferrer">http://example.foo:8081/artifactory/libs-snapshot</a></p>
  
  <p>to 
            <a href="http://example.foo:8081/artifactory/libs-snapshot-local" rel="noreferrer">http://example.foo:8081/artifactory/libs-snapshot-local</a>
  Then I get:</p>
  
  <blockquote>
    <p>[ERROR] Failed to execute goal
    org.apache.maven.plugins:maven-dependency-plugin:2.8:unpack (unpack)
    on project exampleApp: Unable to resolve artifact. Could not transfer
    artifact com.foo:project:jar:1.0 from/to snapshots
    (<a href="http://example.com:8081/artifactory/libs-snapshot-local" rel="noreferrer">http://example.com:8081/artifactory/libs-snapshot-local</a>): Failed to
    transfer file:
    <a href="http://example.com:8081/artifactory/libs-snapshot-local/com/foo/project/1.0/project-1.0.jar" rel="noreferrer">http://example.com:8081/artifactory/libs-snapshot-local/com/foo/project/1.0/project-1.0.jar</a>.
    Return code is: 409 , ReasonPhrase:Conflict.</p>
  </blockquote>
  
  <p>I will keep deploying new snapshots now and then to the same project-1.0 and would like this pom file to just include the latest SNAPSHOT build when building from the artifactory.</p>