I have a small problem with my Maven config. All other questions and answers here didn\'t solve my problem, so I\'m starting a new question.
My problem is, that my M
If you change you'r config to <updatePolicy>always</updatePolicy>
, it still will attempts to download from the nexus, because you have to disable nexus config in pom.xml
mind that <reposotiry>
tag in your pom.xml
will take precedence over what's defined in your settings.xml
You've configured that the SNAPSHOTs should always (<updatePolicy>always</updatePolicy>
) be downloaded from your snapshot-nexus. So even if your local cache (the ~/.m2/repository
) has a newer version of the snapshot, maven tries to download it from the configured server (http://nexus/content/repositories/snapshots
).
Think about changing the updatePolicy for the snapshot-entry. E.g. if you have a CI-server which deploys a SNAPSHOT daily (in the morning) to the snapshot-nexus, change the updatePolicy to daily
.