I have Apache Maven 3.6.3
and due internet connections issues the local repository is corrupted.
I had this experience few times before, and normally the unique approach to resolve this situation is deleting manually all the content of the local repository and download all again.
Due automation purposes through bash/shell I need a command through Maven to delete all the content within the local repository defined through the settings.xml
file
I read this post:
And theoretically the command is:
mvn dependency:purge-local-repository -DactTransitively=false -DreResolve=false
Well it does not work. It download all again.
Note: not sure if the following would be related with the situation that the command does not work how is expected, but I have the local repository in a different place than the default location than .m2\repository
, for example /user_name/apache/maven/repository