When you have an error similar to the following:

[ERROR] error reading /home/operatorfeitam/.m2/repository/org/xerial/snappy/snappy-java/1.1.7.3/snappy-java-1.1.7.3.jar; invalid LOC header (bad signature)
´´´


The problem is because when it has been downloaded prior to the local repository, the library has gone wrong and a corrupt file has been left.

The solution is to remove the entire directory from the local repository path that reports the error, in the case of the error in this example that I show, the folder should be deleted "/home/operatorfeitam/.m2/repository/org/xerial/snappy/snappy-java/1.1.7.3".