I have created a new Maven project using the CQ5 archetype and imported it into IntelliJ IDEA. IntelliJ marks usages of some classes such as org.apache.felix.annotations.Component
, org.apache.felix.annotations.Reference
, etc. IntellIJ as erroneous with the following error message:
The package is not exported by the bundle dependencies
- Is this a legitimate error?
- How can I fix it (as opposed to disabling the inspection)?