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.
The Find usages in local repo Test Case requires: - Build again (m2) Close (m2) Invoke Find usages on App.java in (m1) And the Expected result is: - Find usages should find reference from (m2) jar in local repo. This does not happen. If m2 is not closed, all is well, and invoking Find Usages on App.java in m1 finds the dependency upon it in m2. If, however, m2 is closed then the reference to it in the m2 jar in the local repo is not found.
I have exactly the same problem: Find Usages (Scope = "Current Project & Dependencies(m1)") works if m2 is open, and fails if it is closed. This is the reference test (See "12. Functional tests Test Suite"): http://services.netbeans.org/synergy/client/app/#/specification/339/v/2 Environment: Product Version: NetBeans IDE 8.1 RC (Build 201510012201) Java: 1.8.0_66-ea; Java HotSpot(TM) 64-Bit Server VM 25.66-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_66-ea-b02 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) User directory: C:\Users\JohnDoe\AppData\Roaming\NetBeans\8.1rc_alt2 Cache directory: C:\Users\JohnDoe\AppData\Local\NetBeans\Cache\8.1rc
Cannot reproduce. Whether I set the scope to "Current Project" or "Open Projects" m2 in local repo is found: Usages of App [1 occurrence] \Maven Repository: local \com.example \m2 \1.0-SNAPSHOT \com.example.m2.App Product Version: NetBeans IDE 8.1 (Build 201510222201) Java: 1.8.0_66; Java HotSpot(TM) 64-Bit Server VM 25.66-b17 Runtime: Java(TM) SE Runtime Environment 1.8.0_66-b17 System: Linux version 4.2.5 running on amd64; UTF-8; en_US (nb) User directory: /home/alied/.netbeans/8.1 Cache directory: /home/alied/.cache/netbeans/8.1
could not reproduce: Product Version: NetBeans IDE Dev (Build 201609040002) Java: 1.8.0_102; Java HotSpot(TM) 64-Bit Server VM 25.102-b14 Runtime: Java(TM) SE Runtime Environment 1.8.0_102-b14 System: Linux version 4.7.2 running on amd64; UTF-8; en_US (nb)
Works on netbeans 8.2RC jdk 8_112. Find usage must be done on App not on method