Intellij doesn’t recognize Lombok

Asked

Viewed 123 times

0

I am having a problem using Intellij IDEA 2020.3.2. I am using Lombok in my spring project as follows:

pom.xml:

    <properties>
       <lombok.version>1.18.16</lombok.version>
    </properties>
    <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <version>${lombok.version}</version>
    </dependency>
    <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <configuration>
            <excludes>
                <exclude>
                    <groupId>org.projectlombok</groupId>
                    <artifactId>lombok</artifactId>
                </exclude>
            </excludes>
        </configuration>
    </plugin>
    

With my Compiler configured as follows: inserir a descrição da imagem aqui

And with the following Lombok plugin:

inserir a descrição da imagem aqui

However when I will try to build a build on my application using the:

clean install

He makes the following mistake:

cannot find symbol

On a getId() from Lombok. Please anyone can help me? I can’t uninstall the plugin because it doesn’t have the option there. I don’t know what else to do

  • Update the question with the POJO code. mvn clean install command line works? Have you tried upgrading to Lombok 1.18.18? Have you tried reimporting the Maven project? Have you tried resetting the IDE and clearing the cache? (I’m just giving you some options).

  • By the way, you can uninstall the plugin on File > Settings > Plugins.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.