I have installed nexus repository 3.12 in a server machine and apache-maven 3.3.9 in my local computer.
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.
File path : C:\Program Files\apache-maven-3.3.9\conf\settings.xml
<mirrors>
<mirror>
<id>Nexus</id>
<mirrorOf>central</mirrorOf>
<name>Nexus Public Mirror</name>
<url>http://1.2.3.4:8081/repository/maven_ub/</url>
</mirror>
</mirrors>
But still when i build the project with dependencies it gets the dependencies through the maven central repository.
Is any one can explain how to fix this issue.Thanks in advance.