Apache NetBeans version
Apache NetBeans 24
What happened
After opening a java maven project , netbeans shows no more source folder and behaves oddly
Here is the message shown

Log file does not provide any clue.
The only thing i see is
WARNING [org.netbeans.modules.java.source.indexing.JavaIndex]: Ignoring root with no ClassPath: ...
whereas the folders belong to projects with existing dependencies
Besides when I creat e a new java project, here is what it looks

src folder is shown but twice!!
This happens randomly, and not always. But when it happens, i find no way to get it working properly but to delete completly netbeans cache and config folders.
Deleting only cache does not change anything. But i noticed that deleting Modules folder under config does!
this is the best workaround i can find for now.
Language / Project Type / NetBeans Component
Java Maven Project with modules
How to reproduce
I cannot tell exactly how it reproduces as it is random and
Randomly it shows the following...

This worked properly before nb22, on my machine, I was hoping it to be fixed but it didnt in 23 neither 24.
Did this work correctly in an earlier version?
Apache NetBeans 21
Operating System
Linux version 6.11.8-1-default running on amd64; UTF-8; en_US (nb)
JDK
21.0.5; OpenJDK 64-Bit Server VM 21.0.5+11-suse-1.1-x8664
Apache NetBeans packaging
Apache NetBeans binary zip
Anything else
It is not systematic, but once it happens, there is no way to fix it, i always try to delete config and cache folder.
Are you willing to submit a pull request?
No