title: Maven can not resolve dependencies from private nexus
body: <p>We have recently set up our own private Nexus repository, but it seems that i have a problem downloading the jar files.<br>
  My pom looks like this</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/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;org.example&lt;/groupId&gt;
  &lt;artifactId&gt;TestMvn&lt;/artifactId&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  
  &lt;distributionManagement&gt;
      &lt;repository&gt;
          &lt;id&gt;LB-RELEASE&lt;/id&gt;
          &lt;url&gt;http://IP:8081/repository/data-RELEASE/&lt;/url&gt;
      &lt;/repository&gt;
      &lt;snapshotRepository&gt;
          &lt;id&gt;LB-SNAPSHOT&lt;/id&gt;
          &lt;url&gt;http://IP:8081/repository/data-SNAPSHOT/&lt;/url&gt;
      &lt;/snapshotRepository&gt;
  &lt;/distributionManagement&gt;
  &lt;dependencies&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;my.groupId&lt;/groupId&gt;
      &lt;artifactId&gt;my_artifact&lt;/artifactId&gt;
      &lt;version&gt;1.0.1-RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>
  and this is in my .m2/settings.xml file</p>
  
  <pre><code>&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;servers&gt;
       &lt;server&gt;
          &lt;id&gt;LB-RELEASE&lt;/id&gt;
          &lt;username&gt;xxx&lt;/username&gt;
          &lt;password&gt;xx&lt;/password&gt;
       &lt;/server&gt;
  
       &lt;server&gt;
          &lt;id&gt;LB-SNAPSHOT&lt;/id&gt;
          &lt;username&gt;xxx&lt;/username&gt;
          &lt;password&gt;xx&lt;/password&gt;
       &lt;/server&gt;
     &lt;/servers&gt;
  &lt;/settings&gt;
  </code></pre>
  
  <p>So when I run <code>mvn clean install -U</code> I get<br>
  <code>Failed to execute goal on project TestMvn: Could not resolve dependencies for project org.example:TestMvn:jar:1.0-SNAPSHOT: Could not find artifact my.groupId:my_artifact:jar:1.0.1-RELEASE in central (https://repo.maven.apache.org/maven2)</code> So, it seems that maven doesn't connect to our private repo.
  Strange thing is that it does create the appropriate folders under m2, but it only has 2 files  </p>
  
  <p><code>my_artifact-1.0.1-RELEASE.jar</code> and <code>my_artifact-1.0.1-RELEASE.pom</code>.  </p>
  
  <p>Just to mention that I tried this on both Eclipse and InteliJ using both the Eclipse mvn and the terminal commands   </p>
  
  <p>any ideas why this is happening? thanks</p>