happens that I am using maven, I have 1 repository configured in my pom file, so that in case any dependency is not found in my M2, I look for it in that repository, but it happens to me that, although I have added the jar in my M2, maven does not look for them and direct is going to look for a repository outside the premises.
Config in pom for repository:
<repositories>
<repository>
<id>xxxxx</id>
<name>archiva</name>
<url>http://xx.xx.xx.xx/repository/internal/</url>
</repository>
</repositories>
Do you know a way to prevent maven from looking in another repository other than the local m2?