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 - package does not exist for JAXB annotated classes says NetBeans (no problem for Maven)
Summary: package does not exist for JAXB annotated classes says NetBeans (no problem f...
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Tomas Stupka
Depends on:
Reported: 2016-11-01 15:47 UTC by verveja
Modified: 2016-11-01 15:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

projects "tryjaxb" and "tryxml" (6.50 KB, application/x-zip-compressed)
2016-11-01 15:47 UTC, verveja

Note You need to log in before you can comment on or make changes to this bug.
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 "" 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 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.