Open matthiasblaesing opened 1 month ago
regarding
<annotationProcessorPaths>
<annotationProcessorPath>
when I look at the usage doc it only mentions <path>
as list element.
The type of annotationProcessorPaths
is List<DependencyCoordinate>
. So i am wondering if the element name matters at all (maybe there is a convention I am not aware of). I will take a look at this later, I am not near an IDE atm.
so I believe the way it works is that List
s can have arbitrary element names, this will likely work too:
<annotationProcessorPaths>
<hugo>
...
</hugo>
<otto>
...
</otto>
</annotationProcessorPaths>
so if NB is only checking annotationProcessorPaths/path
it should be updated to check annotationProcessorPaths/*
going to take a look if this can be fixed.
No need. A patch branch is already locally done on my side.
Your assessment is correct and was documented already here: https://github.com/apache/netbeans/issues/7611#issuecomment-2282267641 (yes it would have been good to include it, but the issue was more as a todo for me)
oops, I just opened a PR. I didn't see that you checked that you wanted to open a PR yourself, my mistake.
Apache NetBeans version
Apache NetBeans 22
What happened
When a maven project has a
pom.xml
with aannotationProcessorPaths
configuration, where the element names are notpath
like this:the annotation processors are not found/ran, as NetBeans currently expects the children of
annotationProcessorPaths
are namedpath
:Full project: annotation-processor-netbeans-reproducer.zip
Language / Project Type / NetBeans Component
Java Maven project
How to reproduce
Open attached test project in NetBeans
Did this work correctly in an earlier version?
No / Don't know
Operating System
Ubuntu 24.04
JDK
Amazon Corretto 21
Apache NetBeans packaging
Own source build
Anything else
No response
Are you willing to submit a pull request?
Yes