hanki.dev

Delete .idea to solve Maven problems

Sometimes Maven (or Idea?) just completely fucks you over and complains about not finding dependencies which clearly are defined correctly. Like today, I added a dependency, did Maven reload and suddenly there were problems with old deps which were working just fine earlier?

This happens every now and then and usually deleting ~/.m2/repository/ solves the issue. This time it didn't. Luckily my colleague had a solution which fixed everything: delete the .idea folder from the repo! (and then do mvn reload)

This obiously works only with Intellij IDEA

#java #idea

- 3 toasts