Closed berrychiao closed 2 months ago
I have already resolved the issue of listing the contents of pom.xml。
maven: v3.9.7 netBean: 22 JDK:17
But for some reason, I used the above version of Lombok in pom.xml and it was not downloaded correctly. NetBeans showed that I needed to rebuild the project, and when I rebuilt the project, Lombok was able to work properly. So, I suggest that when [number # 7664] appears( https://github.com/apache/netbeans/issues/7664 )When encountering issues, first rebuild the project, especially for migrating to netBeans. If it doesn't work, try the above version again.
The general advice from my POV for lombok users is: Evaluate whether lombok brings enough to the table to warrant the pain you'll receive. It reaches deeply into the javac and has a high chance to break on JDK updates. If you decide to still use lombok, keep it current, always. You might even need unreleased versions.
Apache NetBeans version
Apache NetBeans 22
What happened
In DLeans22, I have a Maven project that introduced the Lombok plugin and used the @ getter annotation. However, when using the getXXX method, an error message appears: Method not found.
Language / Project Type / NetBeans Component
Java Maven Web 应用程序项目
How to reproduce
In DLeans22, I have a Maven project that introduced the Lombok plugin and used the @ getter annotation. However, when using the getXXX method, an error message appears: Method not found.
Maven:3.9.7
Did this work correctly in an earlier version?
No / Don't know
Operating System
win11
JDK
JDK17
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
Are you willing to submit a pull request?
Yes