Skip to content

Java Projects no more show Src folder and instead shows "Source PAckages is owned by project java, cannot be used here, see issue #138310 for details" #8069

@thevpc

Description

@thevpc

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

image

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
image

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...
image
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugBug report or fixneeds:triageRequires attention from one of the committers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions