I have 4 snapshot dependencies in my Pom and I want to force just 1 dependency to be looked always from local repository only. Is it possible to define in that dependency only that it should be fetched from local?
Maven first checks the local repository, and if it can't find a dependency there, it checks each configured repository one by one until it finds it. Maven Central is configured by default, but you can also configure other repositories.
Maven searches for the dependencies in the following order: Local repository then Central repository then Remote repository. If dependency is not found in these repositories, maven stops processing and throws an error.
force maven to run in offline mode by passing -o
switch
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With