title: Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.code.TypeTags when using lombok
body: <p>I have following dependency in pom.xml:</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.8&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>When I run <code>mvn clean install</code>, I have following error:</p>
  
  <pre><code>Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.code.TypeTags
      at java.lang.ClassLoader.findClass (ClassLoader.java:711)
      at java.lang.ClassLoader.loadClass (ClassLoader.java:566)
      at lombok.launch.ShadowClassLoader.loadClass (ShadowClassLoader.java:418)
  </code></pre>
  
  <p>I tried to use java <code>1.8, 1.9, 1.10</code>. And I tried lombok <code>1.6.10, 1.6.12, 1.6.20</code>. All of them have the same problem.</p>