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 267538

Summary: "Package does not exist" but it does
Product: java Reporter: tedtrippin
Component: SourceAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 8.1   
Issue Type: DEFECT Exception Reporter:

Description tedtrippin 2016-08-11 14:27:36 UTC
Product Version: NetBeans IDE 8.1 (Build 201510222201)
Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1
Java: 1.8.0_72; Java HotSpot(TM) 64-Bit Server VM 25.72-b15
Runtime: Java(TM) SE Runtime Environment 1.8.0_72-b15
System: Windows 8.1 version 6.3 running on amd64; Cp1252; en_GB (nb)

I work on a product which has dependencies that come from a number of git repositories. I regularly change branch from command line, which I suspect may be the reason for this problem.

I get "package <one of my own> does not exist" yet I get no such error when opening the same maven project in Eclipse. It also builds fine in NetBeans and from CLI.

In NetBeans explorer, under Dependencies, I can even navigate to the package. 

Amongst the things I tried are....
- "mvn clean pacakge", from CLI
- clean and build, from NetBeans
- deleted my local maven repo and rebuilt everything, and re-opened NetBeans
- closed NetBeans, deleted cache, opened NetBeans

Eventually, I just re-installed NetBeans and finally the false error has gone.