Apache NetBeans - clear the cache and rebuild maven indexes
Updated: 2024-08-24
If you have issues with the indexation of files and resources in Netbeans, e.g. it freezes building the maven dictionary
Clean the NetBeans cache
You can manually delete the NetBeans cache … but what’s the path?
You can see the path of NetBeans cache in the NetBeans menu.
![About Netbeans menu](/assets/img/uploads/2021/netbeans/about_netbeans.jpeg)
It will appear a page with the logo of Apache NetBeans with some system information.
![About Select directory](/assets/img/uploads/2021/netbeans/directory.jpeg)
The User directory contains your configuration (e.g. open projects). The Cache directory contains the data that you can delete.
To remove the files you can execute rm -r ./*
from /User/[your user]/Library/Caches/NetBeans/[NB Version]
Rebuild Maven indexes
To rebuild the Maven you can go in the Options → Java → Maven you can click Index Now.
![Maven property](/assets/img/uploads/2021/netbeans/maven_property.jpeg)