Showing posts with label MVN. Show all posts
Showing posts with label MVN. Show all posts

Tuesday, May 3, 2016

How to solve artifact not found by maven?

Recently I have to chance settings.xml configuration quickly for download from different repositories after compiling I have received the following error:

"was cached in the local repository, resolution will not be reattempted until the update interval of" "has elapsed or updates are forced"

The solution to this problem is remove some keys and blueprint of artifact that were downloaded from different sites: 

find ~/.m2/ -name "*.lastUpdated" | xargs rm
find ~/.m2/ -name "*.sha1" | xargs rm 
find ~/.m2/ -name "*.repositories" | xargs rm 
 
 
Best Regards,