title: How to prevent lombok from being packaged into Spring Boot jar?
body: <p>If you visit official <a href="http://projectlombok.org/mavenrepo/" rel="noreferrer">Lombok Maven guide</a>, you will see that it's scope should be <code>provided</code>. 
  When I create a new project from scratch using <a href="http://start.spring.io/" rel="noreferrer">start.spring.io</a> and add Lombok, it gets only <code>&lt;optional&gt;true&lt;/optional&gt;</code> in resulting pom.
  Then I package Spring boot app like this and out of curiosity decide to see what gets packaged inside of jar:</p>
  
  <blockquote>
    <p>mvn clean package -DskipTests=true &amp;&amp; unzip target/demo-0.0.1-SNAPSHOT.jar -d exploded</p>
  </blockquote>
  
  <p>Lombok is packaged, does not matter if I set scope to <code>provided</code> or only have <code>optional=true</code>.</p>
  
  <p>How to prevent Lombok from being included to Spring Boot jar?</p>
  
  <p>My last thought was to try another goal which comes with Spring Boot plugin:</p>
  
  <blockquote>
    <p>mvn spring-boot:repackage</p>
  </blockquote>
  
  <p>But unfortunately it produces the following error:</p>
  
  <blockquote>
    <p>repackage failed: Source file must be provided</p>
  </blockquote>