title: How to configure Lombok with maven-compiler-plugin?
body: <p>I have a root module and submodule in maven in the project. I am trying to use Lombok.
  I have added </p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
      &lt;artifactId&gt;lombok&lt;/artifactId&gt;
      &lt;version&gt;1.16.12&lt;/version&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>to root pom.xml.
  In submodule I have a class with Lombok annotations.
  When I am trying to build the project I get a lot of </p>
  
  <blockquote>
    <p>cannot find symbol</p>
  </blockquote>
  
  <p>where I am trying to call getters and setters. </p>
  
  <p>I have tried to use <strong>lombok-maven-plugin</strong> with same version (1.16.12) in root pom and in the sub pom as well with delombok and moving my annotated class to src/main/lombok, I have looked through almost all questions in SO, try all the variants, but not succeed.</p>
  
  <p>I am using Maven 3, Java 8, maven-compiler-plugin with 3.6.1 version.</p>
  
  <p>How should I configure the project to be able to use lombok? Or maybe I am doing smth wrong.</p>