Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Local repository use

While building Maven projects (Spring and jbpm 4.4 to be specific), I see that the libraries that I already have in Maven local repository, gets downloaded again or the console log suggests so.

Say my local repo already have the commons-collection3.1 in my library, is it necessary to download from the maven repository?

Is there a setting that can let maven know to look in the local repo first?

Thanks, Ayusman

like image 286
Ayusman Avatar asked May 26 '26 04:05

Ayusman


1 Answers

You might have the updatePolicy for SNAPSHOT repository set to always in your settings.xml. See this guide to settings.xml.

like image 155
Gaurav Avatar answered May 27 '26 22:05

Gaurav