Nexus local repository, artifact dependency missed in POM.xml

I have a Maven Project in Eclipse and in my POM.xml file I point to the local Nexus Repository :

    <repository>
	    <id>nexus</id>
		<name>libs</name>
                   <url>http://<localmachine>:8081/<localRepo>/</url>        	
	</repository>

I uploaded third-party library to my and in POM.xml defined dependency for that artifact

       <dependency>
	<groupId><myGroup></groupId>
	<artifactId><myArtifact></artifactId>
	<version>1.0-SNAPSHOT</version>
  </dependency>

However, when I build my project in Eclipse or in Jenkins( pipeline ) I am getting an error saying "Couldn’t resolve dependency for the project . Failure to find artifact … "