Skip to content

How to use it in IntelliJ Idea with ECJ and LOMBOK #2116

Description

@luo-zhan

I like to compile with ECJ(Eclipse Compiler for Java) in IDEA, because it will compile all the files when it encounters a compilation error, but I find that MapStruct and Lombok seem to be incompatible. I can run normally when I use each, but not together. Too.
The settings are as follows:

  1. Use ECJ

  2. Enable Annotation Processors
    image

  3. Set compile options(for Lombok)

Then when I build project I get an error:
image

I use gradle, build.gradle content is as follows:
image

If I don’t configure Lombok (the third step above), just use MapStruct, then there is no problem。

By the way, If I build with gradle, it is ok, but gradle seems to be unable to use ECJ😕

How do i deal with it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions