How do you clear Apache Maven's cache? - Stack Overflow
To clean the local cache try using the dependency plug-in.
mvn dependency:purge-local-repository
: This is an attempt to delete the local repository files but it always goes and fills up the local repository after things have been removed.mvn dependency:purge-local-repository -DreResolve=false
: This avoids the re-resolving of the dependencies but seems to still go to the network at times.mvn dependency:purge-local-repository -DactTransitively=false -DreResolve=false
: This was added by Paweł Prażak and seems to work well. I'd use the third if you want the local repo emptied, and the first if you just want to throw out the local repo and get the dependencies again.
Read full article from How do you clear Apache Maven's cache? - Stack Overflow
No comments:
Post a Comment