title: Maven deployed JARS from artifactory are not downloaded when they are given as dependency
body: <p>I have created a jar file using maven and deployed it to local artifactory. I can see the jar file and pom in artifactory</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;com.mycompany.hr&lt;/groupId&gt;
  &lt;artifactId&gt;hotel-schema&lt;/artifactId&gt;
  &lt;packaging&gt;jar&lt;/packaging&gt;
  &lt;version&gt;1.0&lt;/version&gt;
  &lt;parent&gt;
      &lt;groupId&gt;com.mycompany.hr&lt;/groupId&gt;
      &lt;artifactId&gt;spring-ws&lt;/artifactId&gt;
      &lt;version&gt;1&lt;/version&gt;
  &lt;/parent&gt;
  
  &lt;name&gt;jaxb-schema Spring-WS Application&lt;/name&gt;
  &lt;url&gt;http://www.springframework.org/spring-ws&lt;/url&gt;
  &lt;build&gt;
      &lt;finalName&gt;hotel-schema&lt;/finalName&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;jaxb2-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.2&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;xjc&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;xjc&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
  
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;!-- The package of your generated sources --&gt;
                  &lt;sources&gt;
                      &lt;source&gt;../holidayService/src/main/xsd&lt;/source&gt;
                  &lt;/sources&gt;
                  &lt;packageName&gt;com.example.myschema&lt;/packageName&gt;
                  &lt;outputDirectory&gt;target/generated-sources/jaxb&lt;/outputDirectory&gt;
              &lt;/configuration&gt;
  
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
          &lt;artifactId&gt;jaxb2-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.2&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;distributionManagement&gt;
      &lt;repository&gt;
          &lt;id&gt;central&lt;/id&gt;
          &lt;name&gt;Babu-Dell-releases&lt;/name&gt;
          &lt;url&gt;http://localhost:8081/artifactory/local-maven-snapshots&lt;/url&gt;
      &lt;/repository&gt;
      &lt;snapshotRepository&gt;
          &lt;id&gt;snapshots&lt;/id&gt;
          &lt;name&gt;Babu-Dell-snapshots&lt;/name&gt;
          &lt;url&gt;http://localhost:8081/artifactory/local-maven-snapshots&lt;/url&gt;
      &lt;/snapshotRepository&gt;
  &lt;/distributionManagement&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>However when I try to add the jar as dependency to another project, it is not getting downloaded. There is no error I can see.</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;parent&gt;
      &lt;groupId&gt;com.mycompany.hr&lt;/groupId&gt;
      &lt;artifactId&gt;spring-ws&lt;/artifactId&gt;
      &lt;version&gt;1&lt;/version&gt;
  &lt;/parent&gt;
  &lt;artifactId&gt;holidayService&lt;/artifactId&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;name&gt;holidayService Spring-WS Application&lt;/name&gt;
  &lt;url&gt;http://www.springframework.org/spring-ws&lt;/url&gt;
  &lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;my-internal-site&lt;/id&gt;
          &lt;url&gt;http://localhost:8081/artifactory/local-maven-snapshots&lt;/url&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  &lt;build&gt;
      &lt;finalName&gt;holidayService&lt;/finalName&gt;
      &lt;extensions&gt;
          &lt;extension&gt;
              &lt;groupId&gt;org.apache.maven.wagon&lt;/groupId&gt;
              &lt;artifactId&gt;wagon-ftp&lt;/artifactId&gt;
              &lt;version&gt;2.10&lt;/version&gt;
          &lt;/extension&gt;
      &lt;/extensions&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.8&lt;/source&gt;
                  &lt;target&gt;1.8&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;tomcat-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.1&lt;/version&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  &lt;dependencies&gt;
  
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.ws&lt;/groupId&gt;
          &lt;artifactId&gt;spring-ws-core&lt;/artifactId&gt;
          &lt;version&gt;2.1.4.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;jaxen&lt;/groupId&gt;
          &lt;artifactId&gt;jaxen&lt;/artifactId&gt;
          &lt;version&gt;1.1.6&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.jdom&lt;/groupId&gt;
          &lt;artifactId&gt;jdom&lt;/artifactId&gt;
          &lt;version&gt;2.0.2&lt;/version&gt;
  
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.mycompany.hr&lt;/groupId&gt;
          &lt;artifactId&gt;hotel-schema&lt;/artifactId&gt;
          &lt;version&gt;1.0&lt;/version&gt;
      &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  
  &lt;distributionManagement&gt;
      &lt;repository&gt;
          &lt;id&gt;central&lt;/id&gt;
          &lt;name&gt;Babu-Dell-releases&lt;/name&gt;
          &lt;url&gt;http://localhost:8081/artifactory/local-maven-snapshots&lt;/url&gt;
      &lt;/repository&gt;
      &lt;snapshotRepository&gt;
          &lt;id&gt;snapshots&lt;/id&gt;
          &lt;name&gt;Babu-Dell-snapshots&lt;/name&gt;
          &lt;url&gt;http://localhost:8081/artifactory/local-maven-snapshots&lt;/url&gt;
      &lt;/snapshotRepository&gt;
  &lt;/distributionManagement&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Please help</p>
  
  <p>Please find attached the image in my local repository[image of local repository][1]</p>
  
  <p>Also please find below the settings.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  &lt;servers&gt;
  &lt;server&gt;
    &lt;username&gt;admin&lt;/username&gt;
    &lt;password&gt;{YBoEnaZCnnEHquaMcfJGpTjh0I7i+vQAv9a2+CQL9ZE=}&lt;/password&gt;
    &lt;id&gt;central&lt;/id&gt;
  &lt;/server&gt;
  &lt;server&gt;
    &lt;username&gt;admin&lt;/username&gt;
    &lt;password&gt;{YBoEnaZCnnEHquaMcfJGpTjh0I7i+vQAv9a2+CQL9ZE=}&lt;/password&gt;
    &lt;id&gt;snapshots&lt;/id&gt;
  &lt;/server&gt;
  &lt;/servers&gt;
  &lt;profiles&gt;
  &lt;profile&gt;
    &lt;repositories&gt;
      &lt;repository&gt;
        &lt;snapshots&gt;
          &lt;enabled&gt;false&lt;/enabled&gt;
        &lt;/snapshots&gt;
        &lt;id&gt;central&lt;/id&gt;
        &lt;name&gt;libs-release&lt;/name&gt;
        &lt;url&gt;http://localhost:8081/artifactory/local-maven-snapshots&lt;/url&gt;
      &lt;/repository&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://localhost:8081/artifactory/local-maven-snapshots&lt;/url&gt;
      &lt;/repository&gt;
    &lt;/repositories&gt;
    &lt;pluginRepositories&gt;
      &lt;pluginRepository&gt;
        &lt;snapshots&gt;
          &lt;enabled&gt;false&lt;/enabled&gt;
        &lt;/snapshots&gt;
        &lt;id&gt;central&lt;/id&gt;
        &lt;name&gt;plugins-release&lt;/name&gt;
        &lt;url&gt;http://localhost:8081/artifactory/plugins-release&lt;/url&gt;
      &lt;/pluginRepository&gt;
      &lt;pluginRepository&gt;
        &lt;snapshots /&gt;
        &lt;id&gt;snapshots&lt;/id&gt;
        &lt;name&gt;plugins-snapshot&lt;/name&gt;
        &lt;url&gt;http://localhost:8081/artifactory/plugins-snapshot&lt;/url&gt;
      &lt;/pluginRepository&gt;
    &lt;/pluginRepositories&gt;
    &lt;id&gt;artifactory&lt;/id&gt;
  &lt;/profile&gt;
  &lt;/profiles&gt;
  &lt;activeProfiles&gt;
  &lt;activeProfile&gt;artifactory&lt;/activeProfile&gt;
  &lt;/activeProfiles&gt;
  &lt;/settings&gt;
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/6BO2Z.png" rel="nofollow">Image of eclipse maven dependencies</a></p>
  
  <p><a href="http://i.stack.imgur.com/pWRqI.png" rel="nofollow">Artifactory server jar file image</a></p>