title: Adding module-info.java to the project results lombok errors
body: <p>I am trying to migrate from Java 8 to Java 11. My versions are as follows:</p>
  <blockquote>
  <ol>
  <li>OpenJDK 11</li>
  <li>Springboot: 2.2.7.RELEASE</li>
  <li>Maven home: 3.6.1</li>
  <li>Lombok: 1.18.12</li>
  </ol>
  </blockquote>
  <p>Everything builds fine. Although I wanted to create a jre using <strong>jlink</strong> so I need to generate a <code>module-info.java</code> file. I generated it using the <strong>STS</strong> ide. I just right click on the <code>project -&gt; Configure -&gt; Create module-info.java</code>. When I did this, I can't build the project anymore. It throws a <em><strong>cannot find symbol</strong></em> error for the lines of code that calls <em><strong>@Data</strong></em> annotation of Lombok.</p>
  <p>I've tried adding the <em><strong>annotationProcessorPaths</strong></em> tags as stated here: <a href="https://github.com/rzwitserloot/lombok/issues/1723" rel="nofollow noreferrer">solution</a> but it still does not work. I also tried adding the <em><strong>static</strong></em> keyword like this:
  <a href="https://i.stack.imgur.com/FYqmu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FYqmu.png" alt="enter image description here" /></a> but it still does not work.</p>
  <p>This is what my pom looks like now:</p>
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
      &lt;configuration&gt;
          &lt;source&gt;11&lt;/source&gt;
          &lt;target&gt;11&lt;/target&gt;
          &lt;compilerVersion&gt;11&lt;/compilerVersion&gt;
          &lt;annotationProcessorPaths&gt;
              &lt;annotationProcessorPath&gt;
                  &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
                  &lt;artifactId&gt;lombok&lt;/artifactId&gt;
                  &lt;version&gt;1.18.12&lt;/version&gt;
              &lt;/annotationProcessorPath&gt;
              &lt;path&gt;
                  &lt;groupId&gt;org.mapstruct&lt;/groupId&gt;
                  &lt;artifactId&gt;mapstruct-processor&lt;/artifactId&gt;
                  &lt;version&gt;1.3.0.Final&lt;/version&gt;
              &lt;/path&gt;
          &lt;/annotationProcessorPaths&gt;
          &lt;compilerArguments&gt;
              &lt;AaddGeneratedAnnotation&gt;false&lt;/AaddGeneratedAnnotation&gt;
              &lt;Adebug&gt;true&lt;/Adebug&gt;
          &lt;/compilerArguments&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  <p>I've been searching for the whole day for a solution but I still can't find one that works for me. Any other suggestions that I can try?</p>
  <p>Thank you in advance!</p>