apache / apache/netbeans

Navigate to source links to the first available project maven artifact instead of current

Open
#8,145 0 comments 0 reactions 0 assignees View on GitHub
Java kind:bug Maven needs:triage
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 24

### What happened

I have noticed that if the same jar file maven artifact is being used by totally different projects, the "navigate to source" command links to the first available in projects tab. Closing the project that has the same artifact downloaded and the current project becomes the the first available, it links to the right place and opens the jar in current.

### Language / Project Type / NetBeans Component

Java Maven

### How to reproduce

Create or open 2 projects that download the same jar artifact, from the second one try a "navigate to source" command

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

windows 10 x64

### JDK

21

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

_No response_

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in Apache NetBeans 24 with two Java Maven projects using the same jar, then start from the Navigate to Source command and inspect how the source artifact is selected across open projects. Done means the command opens the source associated with the current project rather than the first project listed.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
developer-experience
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.