It happens that I am using maven, I have configured 1 repository in my pom file, so that in case some dependency is not found in my M2, it looks for it in that repository, but it happens to me that, even if I have added the jars in my M2, maven it does not look for them and directly goes to look for a repository outside the local one.
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 of a way to prevent maven from looking in another repository than the local m2?
You can use the option
-o
that refers tooffline
, this will force maven to look for dependencies only in the local repository. Example: