How do I prevent Maven from downloading artifacts every time?
If you use offline flag it will use your libraries from local repo.
mvn clean install -o
You may control the update frequency by configuring repositories in the $USER_HOME/.m2/settings.xml
file. Specifically, change the updatePolicy
to a value that results in less frequent updates.
This Stackoverflow answer has more detail.