[ACCEPTED]-Maven tries to download dependency despite it existing in local repository-maven-2

Accepted answer
Score: 25

When you have these error, simply clean 3 the _remote.repositories that indicate maven where the dependency 2 comes from. You will find this file for 1 each artifact inside your M2_REPO.

Score: 20

Maven will compare the local POM's timestamp 8 (stored in a repository's maven-metadata 7 file) to the remote. When maven does this 6 depends on the updatePolicy that can be 5 defined in your settings xml.

Either set 4 this to never (discouraged) or skip this 3 check (only when a remote repository appears 2 to be down) by using the -o option (offline); then 1 maven will not check remote repositories.

More Related questions