title: Maven not find dependency in Nexus
body: <p>My pom file for the project has the following distribution management tag</p>
  
  <pre><code>&lt;distributionManagement&gt;
      &lt;repository&gt;
          &lt;id&gt;confiz-repo&lt;/id&gt;
          &lt;url&gt;http://10.10.10.230:8081/nexus/content/repositories/snapshots/&lt;/url&gt;
          &lt;releases&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
          &lt;/releases&gt;
          &lt;snapshots&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
          &lt;/snapshots&gt;
      &lt;/repository&gt;
  &lt;/distributionManagement&gt;
  </code></pre>
  
  <p>i use mvn deploy and that gives me a success. So i know my artifact has been deployed successfully. Now my settings.xml file is as follows</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
            xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"&gt;
    &lt;pluginGroups&gt;
    &lt;/pluginGroups&gt;
  
    &lt;proxies&gt;
    &lt;/proxies&gt;
  
    &lt;servers&gt;
      &lt;server&gt;
        &lt;id&gt;confiz-repo&lt;/id&gt;
        &lt;username&gt;admin&lt;/username&gt;
        &lt;password&gt;admin123&lt;/password&gt;
      &lt;/server&gt;
    &lt;/servers&gt;
  
    &lt;mirrors&gt;
      &lt;mirror&gt;
        &lt;!-- The id of this mirror and the server instance above needs to be the same!--&gt;
        &lt;id&gt;confiz-repo&lt;/id&gt;
        &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;
        &lt;url&gt; http://10.10.10.230:8081/nexus/content/groups/public/&lt;/url&gt;
      &lt;/mirror&gt;
      &lt;mirror&gt;
        &lt;!-- The id of this mirror and the server instance above needs to be the same!--&gt;
        &lt;id&gt;confiz-repo&lt;/id&gt;
        &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;
        &lt;url&gt; http://10.10.10.230:8081/nexus/content/repositories/snapshots/&lt;/url&gt;
      &lt;/mirror&gt;
    &lt;/mirrors&gt;
  
    &lt;profiles&gt;
      &lt;profile&gt;
        &lt;id&gt;nexus&lt;/id&gt;
        &lt;!--Enable snapshots for the built in central repo to direct --&gt;
        &lt;!--all requests to nexus via the mirror --&gt;
        &lt;repositories&gt;
          &lt;repository&gt;
            &lt;id&gt;confiz-repo&lt;/id&gt;
            &lt;url&gt;http://central&lt;/url&gt;
            &lt;releases&gt;
          &lt;enabled&gt;true&lt;/enabled&gt;
        &lt;/releases&gt;
            &lt;snapshots&gt;
          &lt;enabled&gt;true&lt;/enabled&gt;
          &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
        &lt;/snapshots&gt;
          &lt;/repository&gt;
        &lt;/repositories&gt;
        &lt;pluginRepositories&gt;
          &lt;pluginRepository&gt;
            &lt;id&gt;confiz-repo&lt;/id&gt;
            &lt;url&gt;http://central&lt;/url&gt;
            &lt;releases&gt;
          &lt;enabled&gt;true&lt;/enabled&gt;
        &lt;/releases&gt;
            &lt;snapshots&gt;
          &lt;enabled&gt;true&lt;/enabled&gt;
        &lt;/snapshots&gt;
          &lt;/pluginRepository&gt;
        &lt;/pluginRepositories&gt;
      &lt;/profile&gt;
    &lt;/profiles&gt;
  
  
    &lt;activeProfiles&gt;
      &lt;activeProfile&gt;nexus&lt;/activeProfile&gt;
    &lt;/activeProfiles&gt;
  
  &lt;/settings&gt;
  </code></pre>
  
  <p>Now when i include the dependency for the first project into my second project and run mvn clean install maven complains</p>
  
  <pre><code>[ERROR] Failed to execute goal on project merchant: Could not resolve dependencies for project com.onestopspot:merchant:apk:1.0.1-SNAPSHOT: Could not find artifact com.confiz.abc:my-artifact:jar:1.0-SNAPSHOT in confiz-repo (http://10.10.10.230:8081/nexus/content/groups/public/) -&gt; [Help 1]
  </code></pre>
  
  <p>what am i doing wrong ? </p>
  
  <p><strong>EDIT</strong> - I can see my artifact deployed in nexus. So i am right in saying that the mvn deploy works correctly. But the path <code>http://10.10.10.230:8081/nexus/content/groups/public/</code> from which nexus is trying to read does not contain my artifact. </p>