title: Create a simple JAR instead of an executable JAR with Spring-Boot
body: <p>I have a problem with a Multi-Module Spring-Boot Application.</p>
  
  <p>I have one Module that I use for Services, the <em>core</em>-Module. And one module for View-Related Classes, the <em>web</em>-Module.
  The are both in a <em>parent</em>-Module, where I add the dependencies, like the "spring-boot-starter" and that can be used by both modules. </p>
  
  <p>Now to the problem:</p>
  
  <p>I want to run the <em>web</em>-Module with the embedded Tomcat and have the <em>core</em>-Module as a dependency in the <em>web</em>-module. </p>
  
  <p>In other Spring projects I would just include the <em>maven-jar-plugin</em> and create a jar of the <em>core</em>-Module. </p>
  
  <p>The problem in this Spring-Boot project is that the <em>maven-jar-plugin</em> is already configured, in the "spring-boot-starter". And it needs a mainClass, which only the <em>web</em>-module has. </p>
  
  <p>Small excerpt from the "spring-boot-starter"-POM</p>
  
  <pre><code>            &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;archive&gt;
                          &lt;manifest&gt;
                              &lt;mainClass&gt;${start-class}&lt;/mainClass&gt;
                              &lt;addDefaultImplementationEntries&gt;true&lt;/addDefaultImplementationEntries&gt;
                          &lt;/manifest&gt;
                      &lt;/archive&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  </code></pre>
  
  <p>Is there a way to package the <em>core</em>-Module as a JAR without needing a "start-class" in that module? </p>