@Slf4j annotation does not work in IntelliJ IDEA

1,235 views
Skip to first unread message

kuczera

unread,
Nov 21, 2016, 2:56:54 AM11/21/16
to Project Lombok

Hello guys,
I am a newcomer if it is about Java and IntelliJ IDEA, so please correct me if I am wrong in any place.

So I am using the IntelliJ IDEA 2016.2.5 and the fresh Maven project (created from the QuickStart archetype). I also installed the Lombok Plugin from within the IDE itself.

If I annotate the class with eg. @Date, the IntelliJ sees the changes and the autocompletion, hell, even the compilation works.

But the problem is, when I put the @Slf4j annotation above the class, the program cannot be successfully compiled, with the error:
error: package org.slf4j does not exist
 Do you have any tip for me? What should I check or how to properly configure the environment for the @Slf4j annotation?

I also attach three screenshots from the IDE itself, have I look.

NOTE: I removed the <version> tag from the maven-compiler-plugin configuration - the variable ${maven.compiler.plugin.version} could not be resolved.

Reply all
Reply to author
Forward
0 new messages