Thomas, I know this isn't terribly helpful, but I've worked with Maven projects using Lombok with NetBeans and everything "just works". Even ctrl+clicking on a generated getter invocation navigates to the field in the Lombok annotated class (since the getter isn't there).
There may be something in your environment that is preventing NetBeans from finding the generated bytecode. David On Fri, Sep 20, 2019 at 5:25 AM Thomas Kellerer <sham...@gmx.net> wrote: > Hello, > > I need to open and use a Maven project in NetBeans 11 that heavily uses > Lombok. > All other team members are using InteliJ, where the current setup works > without problems. > > But when I open that Maven project in NetBeans 11.1 half of the source > code is marked with red error flags, because the generated getters and > setters are not recognized by the NetBeans editor. > > Clean & Build obviously works because Lombok is included in the POM, but > the NetBeans editor doesn't know that. > > I found various hints in the internet regarding the use of Lombok with a > NetBeans Ant project ("Enable Annotation processing in Editor") > But those obviously don't apply to a Maven project > > Is there anything I can do, so that I can properly work with that project > in NetBeans? > > Regards > Thomas > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org > For additional commands, e-mail: users-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > -- http://ensode.net - A Guide to Java, Linux and Other Technology Topics My Books: https://www.packtpub.com/books/info/authors/david-r-heffelfinger <http://www.packtpub.com/authors/profiles/david-heffelfinger> My Video Training: http://www.packtpub.com/java-ee-development-with-netbeans-7/video Follow me on Twitter: https://twitter.com/ensode