title: Create an Spring Boot Executable jar AND a regular library jar
body: <p>I have a regular Java project that creates a jar file that is a library of stuff that is used in a webapp. It's a Spring Boot starter that creates a jar.  Simple stuff.</p>
  
  <p>I wanted to be able to run this as a stand alone executable jar file.  So I write a standard Application.java that implements CommandLineRunner and I add this to my plugins:</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;/plugin&gt;
  </code></pre>
  
  <p>and presto,  my jar is executable. </p>
  
  <p>However,  that plugin changes the directory structure such that it is no longer a regular library jar,  and my webapplication fails to find the classes in it.  When I remove the plugin entry in my pom,  the webapp works fine,  but the jar is no longer executable.</p>
  
  <p>Is it possible to do both? And if so, how?</p>