John Rambo
John Rambo

Reputation: 934

Lombok not working with Intellij

I am not able to use any of the lombok annotations in Intellij, it works fine in Eclipse.

So far, I have done the following things:

However, I cannot use any of the lombok annotations, eg: using @Builder gives error because import lombok.Builder does not exists.

I am using IDEA 2018.2.1 CE

Any ideas, what am I doing wrong?

MVN dependency:

Can see the dependency resolved:

Can see the lombok plugin:

Annotation processing enabled:

EDIT:

Following code gives an error, basically i cannot use import lombok because somehow I lombok is not available:

import lombok.Builder //Error, Cannot resolve Builder

@Builder //Gives error, cannot resolve symbol Builder
public class Employee{
    private int id;
    private String name;
}

Upvotes: 4

Views: 6122

Answers (1)

BlackPearl
BlackPearl

Reputation: 300

From your images, it seems like you have submodule temp, it can be the problem
The pom.xml is for project buildertest, not temp

If you want to have submodule, you should also set it as Maven project and have another pom.xml

Upvotes: 2

Related Questions