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 268770

Summary: package does not exist for JAXB annotated classes says NetBeans (no problem for Maven)
Product: projects Reporter: verveja
Component: MavenAssignee: Tomas Stupka <tstupka>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: projects "tryjaxb" and "tryxml"

Description verveja 2016-11-01 15:47:25 UTC
Created attachment 162717 [details]
projects "tryjaxb" and "tryxml"

Consider a Maven project that generates classes with JAXB annotations (javax.xml.bind.annotation) for an XML Schema.
Consider a Maven project that depends on those JAXB annotated classes to unmarshal an XML file.

Using only Maven there seems to be no unexpected behaviour, the unmarshal works as expected (also using Maven in NetBeans).
But in a Java source editor, NetBeans seems to report "package ... does not exist" for the (imported) JAXB annotated classes.

I have been able to reproduced this using the Maven projects in attached file "existspackage-20161101.zip" using NetBeans IDE 8.2 (Build 201609300101).

scenario :
- for both projects "tryjaxb" and "tryxml" a "mvn clean install" results in "BUILD SUCCESS"
- open the project "tryxml" in NetBeans, open GreenElementHelper.java in a source editor and notice the "package be.existspackage.colorelementspackage does not exist" messages

Can these "package ... does not exist" messages be avoided in NetBeans?

Many thanks.