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.

Bug 255596 - Usages not found in local repo
Summary: Usages not found in local repo
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.1
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-28 06:10 UTC by nigel
Modified: 2016-09-13 09:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nigel 2015-09-28 06:10:57 UTC
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.
Comment 1 skomisa 2015-10-05 23:32:01 UTC
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
Comment 2 alied 2015-10-30 03:49:16 UTC
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
Comment 3 alied 2016-09-05 03:13:13 UTC
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)
Comment 4 skygo 2016-09-13 09:43:07 UTC
Works on netbeans 8.2RC jdk 8_112.

Find usage must be done on App not on method