lombok Questions

9

Solved

I am trying to compile my project that uses lombok through maven and i am getting the following issue: [INFO] ------------------------------------------------------------------------ [INFO] Buildi...
Willardwillcox asked 14/2, 2016 at 17:36

48

Solved

I'm trying to use Lombok in my project that I'm developing using IntelliJ IDEA 11. I've installed 3rd-party plugin for IDEA and it seems working fine because IDEA sees all autogenerated methods/fie...
Carden asked 24/2, 2012 at 2:3

9

Solved

I'm using project Lombok together with Spring Data JPA. Is there any way to connect Lombok @Builder with JPA default constructor? Code: @Entity @Builder class Person { @Id @GeneratedValue(stra...
Isoleucine asked 12/12, 2015 at 15:44

4

Solved

I am trying to use maven to build my java project, but I always get the error message, > Execution default of goal org.projectlombok:lombok-maven-plugin:1.18.10.0:delombok failed: A required cl...
Disrupt asked 6/12, 2019 at 11:57

28

Solved

I just tried to send a Maven-based project to another computer and HORROR, red markers everywhere!! However, mvn clean install is building just fine. Quickly, I noticed that Lombok is not generat...
Mceachern asked 3/8, 2012 at 22:6

10

I worked with Lombok without any problems until Today, when my Intellij was automatically updated to the latest version 2020.3 30th, November build. After that, any Lombok annotations is not recogn...
Triptych asked 1/12, 2020 at 17:13

5

Solved

I am currently replacing all my standard POJO's to use Lombok for all the boilerplate code. I find myself keeping getters for lists because I want to return an empty list if the list has not been i...
Whittier asked 22/7, 2016 at 8:48

2

Solved

I have an Entity @Builder class MyEntity { private Set<OtherEntitiy> children = new HashSet<>() } And i get a lombok warning. warning: @Builder will ignore the initializing expr...
Cilium asked 5/9, 2017 at 14:23

3

When trying to map nested Object using @Data and @Builder, mapStruct throw the following errors: "No read accessor found for property "profile" in target type." @Mapper(componen...
Lanai asked 9/10, 2020 at 21:37

3

Solved

Have a target type, formed by Lombok: @Data @Builder class Target { private final String a; } and have a DTO: @Value @Builder class DTO { private final String a; } Mapper: @Mapper(componen...
Brower asked 10/10, 2019 at 14:17

10

Solved

After upgrading to JDK 21, I have the following compilation error in my Spring Boot project: Fatal error compiling: java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does n...
Stat asked 25/9, 2023 at 9:5

3

I am using project lombok with my application. I was creating an enum. If I use @AllArgsConstructor annotation with my enum, it doesn't recognise the constructor, enum throws and error that i...
Counterchange asked 15/4, 2018 at 1:47

10

I have STS version 3.6.3.SR1 that's based on Eclipse Luna 4.4.1. I did the following steps: Download and run the Lombok runnable jar and gave the path of my STS. I verified the entries of vmargs...
Caddoan asked 27/5, 2015 at 9:30

15

Solved

If I add @Builder to a class. The builder method is created. Person.builder().name("john").surname("Smith").build(); I have a requirement where a particular field is required. In this case, the ...
Scrofulous asked 27/4, 2015 at 0:43

7

Solved

I was playing with the Lombok library in Java and found an annotation called @SneakyThrows. As the documentation states: @SneakyThrows fakes out the compiler. In other words, Lombok doesn't wrap o...

6

Solved

I have a JHipster project in which I have added dependency for Lombok in build.gradle: compile group: 'org.projectlombok', name: 'lombok', version: lombok_version And I have the Lombok plugin st...
Habergeon asked 6/2, 2016 at 1:6

5

I'm using Lombok to add logging to my Java applications. I've been using this for some time, but since I upgraded my IDE from IntelliJ 13 Community edition to 14 Ultimate, I get the following compi...
Esme asked 12/2, 2015 at 14:40

23

Solved

Tech Stack being used : Java 8 MapStruct : 1.2.0.Final Lombok: 1.16.18 IDE: IntelliJ - Lombok Plugin already installed Initially, I faced issues when I removed getters and setters and added @G...
Nerta asked 6/12, 2017 at 14:14

4

Solved

After installation of newest Android Studio I tried to install Lombok plugin (Android Studio Bumblebee 2021.1.1 | Built on January 19, 2022) But didn't find Lombok in Settings -> Plugins -> ...

23

Solved

I have followed the tutorial here http://projectlombok.org/ but after adding import and @Data nothing happens. Does it work on eclipse helios ?
Preserve asked 5/8, 2010 at 20:22

6

Solved

I updated IntelliJ IDEA to version 2018.2.7, and Lombok's @Builder annotation is not recognised anymore. The project already had Lombok annotations, which worked fine with previous (2017...) versio...
Prepay asked 15/5, 2019 at 14:33

5

Solved

My question relates to "https://mcmap.net/q/334765/-gradle-build-fails-on-lombok-annotated-classes". I am using JHipster and Lombok 1.16.18 with build.gradle: ... apply plugin: 'net.ltgt....
Carib asked 24/11, 2017 at 12:54

5

I have the following definition: @Value @Builder(toBuilder = true) public class MyEntity { String name; } When trying to use a getter on a builder, e.g. MyEntityBuilder.getName(), IDEA states tha...
Giant asked 3/11, 2021 at 12:41

3

Solved

I have a project(ID3 tagging) that contains dozens of setters and getters. I'm investigating Project Lombok to see how it can help me. Some of the fields that can be set have very strict requirem...
Stinko asked 8/6, 2014 at 18:3

13

Solved

I have a class called as "XYZClientWrapper" , which have following structure: @Builder XYZClientWrapper{ String name; String domain; XYZClient client; } What I want no build function generate...
Consider asked 8/6, 2015 at 19:38

© 2022 - 2024 — McMap. All rights reserved.