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 270018

Summary: It seems that the annotationProcessorPaths are not picked up from the maven-compiler-plugin
Product: java Reporter: sjaak
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:

Description sjaak 2017-03-08 16:44:37 UTC
Effect:

* Compilation errors shown in IDE (not in Maven build) for JPA ModelGen classes (the genererated classes are inside in another submodule called ‘entities’)
* Unit test does not work from inside the IDE
* No guidance / support in the IDE for annotations.

It seems that :

1.	Its required to mark annotation processors as provided Maven dependency. The 'new' annotationProcessorPaths in the configuration of the maven-compiler-plugin was introduced to keep annotation processors from the class path of the project code itself.

2.	If I need to manage the annotation processor dependencies as provided , I would like to manage them centrally, so I can remove them whenever point 1. is solved.

But: I also noticed, that adding the annotation processors are not picked up the <dependencies> (not <dependencyManagement>) of a parent pom which has <relativePath /> empty (which you would like to do if you maintain a baseline or bom). They are however shown as set when you look at the effective pom. Moreover, it works when you have a non-empty <relativePath> pointing to the parent.