Maven Build kann kein Symbol finden, wenn auf mit Projekt-Lombok-Annotationen versehene Methoden zugegriffen wird.

Ich verwende Project Lombok zum ersten Mal und habe Probleme beim Kompilieren des Projekts über Maven, wenn ich den Build ausführe. Ich erhalte eine Fehlermeldung, wenn mit Project Lombok-Annotationen annotierte Methoden aufgerufen werden.

Dies ist der mit Anmerkungen versehene Parameter:

    private @Getter @Setter String paymentNonce = null;

und in dieser Zeile unterbricht der Maven zum Beispiel den Build:

if (!StringUtilities.isNullOrEmpty(getPaymentNonce())) {

das ist meine maven Abhängigkeit

<dependency> 
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <version>1.16.4</version> 
</dependency>

the maven error:

[INFO] Compiling 158 source files to C:\java\repos\luna\cloudflow\cloudflow-ejb\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \java\repos\luna\cloudflow\cloudflow-ejb\src\main\java\si\arctur\controller\PaymentProcessor.java:[94,38] error: cannot find symbol
[ERROR] \java\repos\luna\cloudflow\cloudflow-ejb\src\main\java\si\arctur\controller\PaymentProcessor.java:[97,106] error: cannot find symbol
[ERROR] \java\repos\luna\cloudflow\cloudflow-ejb\src\main\java\si\arctur\controller\PaymentProcessor.java:[142,2] error: cannot find symbol
[ERROR] \java\repos\luna\cloudflow\cloudflow-ejb\src\main\java\si\arctur\controller\ShoppingCart.java:[27,6] error: cannot find symbol
[ERROR] \java\repos\luna\cloudflow\cloudflow-ejb\src\main\java\si\arctur\controller\ShoppingCart.java:[32,75] error: cannot find symbol
.....

Ich benutze Java 8

Antworten auf die Frage(20)

Ihre Antwort auf die Frage