title: Integrate maven with nexus repository
body: <p>I have installed nexus repository 3.12 in a server machine and apache-maven 3.3.9 in my local computer.</p>
  
  <p>I want to configure maven to access repository.
  I created a repository in nexus as maven_ub and edit the settings.xml file as below.</p>
  
  <p>File path :  <strong>C:\Program Files\apache-maven-3.3.9\conf\settings.xml</strong> </p>
  
  <pre><code>&lt;mirrors&gt;
     &lt;mirror&gt;
       &lt;id&gt;Nexus&lt;/id&gt;
       &lt;mirrorOf&gt;central&lt;/mirrorOf&gt;
       &lt;name&gt;Nexus Public Mirror&lt;/name&gt;
       &lt;url&gt;http://1.2.3.4:8081/repository/maven_ub/&lt;/url&gt;
     &lt;/mirror&gt;
  &lt;/mirrors&gt;
  </code></pre>
  
  <p>But still when i build the project with dependencies it gets the dependencies through the maven central repository.</p>
  
  <p>Is any one can explain how to fix this issue.Thanks in advance.</p>