In POM of my project I've noticed the following config:
<repositories>
<repository>
<id>nexus</id>
<url>http://path/to/nexus</url>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
</repository>
</repositories>
I'm curious what does it mean and what impact has setting updatePolicy
to never
compared to the default daily
?. Does it make builds faster? What are the cases when update happens?
Official docs are not very helpful:
updatePolicy: This element specifies how often updates should attempt to occur. Maven will compare the local POM’s timestamp (stored in a repository’s maven-metadata file) to the remote. The choices are:
always
,daily
(default),interval:X
(where X is an integer in minutes) ornever
.