This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I searched for a class which was placed in an opend maven project in the IDE with the Go to type dialog and found it probably. After that I closed the maven project and searched again for the class. I've found the class again but unfortunately the location path still showed the path to the local sources instead the path to the project jar located in the local repository which is wrong. After a restart, the go to type dialog worked as expected. Used Build: NB 6.10-m1
Need steps to reproduce from scratch. What exactly did you do, and what exactly did you see (e.g. screenshots)?
Created attachment 102331 [details] maven projects & screenshots for reproducing correct.png shows the state when you load those projects in the ide. bug.png shows the state after you closed mavenprojectB in search for class "SearchTarget". The location path is wrong, should be repository jar path. correct-restart.png shows the state after a restart of the IDE and search for "SearchTarget" --> location path points to repository --> was correct refreshed only after restart.
I will try to reproduce when I get a chance.
from what I read in MavenFileOwnerQueryImpl class, the registered coordinates are never removed, unless there is some problem with loading the underlying project object (which is not the case for just closed projects)
(In reply to comment #2) > bug.png shows the state after you closed mavenprojectB in search for class > "SearchTarget". The location path is wrong, should be repository jar path. No, this screenshot is correct - Go to Type works on transitive dependencies of open project, and since A depends on B using a snapshot version, B/src/main/java/ is used as the definition of types in this project, even if it is not open. > correct-restart.png shows the state after a restart of the IDE and search for > "SearchTarget" When I try the same, I continue to see the source file from B/src/main/java/ as expected.
BTW this was filed against 7.0 where the behavior of MFOQI was different than it is in 7.1+.