[ACCEPTED]-Maven tries to download dependency despite it existing in local repository-maven-2
Accepted answer
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.
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.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.