Compiler error “archive for required library could not be read” – Spring Tool Suite

Indeed IDEs often cache the local repository (Eclipse does something similar, and I have to relaunch Eclipse).

One ugly maven behavior you might encounter is that if you declare a dependency before you actually install it, maven will create an empty version of the missing dependency (folder with metadata but no jar), and you will have to manually clean your .m2 repository.

Third, an installed archive (jar…) can get corrupted, so try to open it with any archive tool (7zip…) to test it, and delete the whole folder if the archive is corrupted.

Leave a Comment