title: spring-boot-maven-plugin create jar with dependencies
body: <p>My project is running fine in eclipse. I was using the following plugin to build my jar with dependencies.</p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;phase&gt;package&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;single&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
          &lt;configuration&gt;
              &lt;archive&gt;
                  &lt;manifest&gt;
                      &lt;mainClass&gt;com.project.App&lt;/mainClass&gt;
                  &lt;/manifest&gt;
              &lt;/archive&gt;
            &lt;descriptorRefs&gt;
              &lt;descriptorRef&gt;jar-with-dependencies&lt;/descriptorRef&gt;
            &lt;/descriptorRefs&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>On running the jar, I got the following error.</p>
  
  <pre><code>2017-07-17 15:21:06.825 ERROR 17587 --- [           
  main] o.s.boot.SpringApplication               : 
  Application startup failed
  
  org.springframework.beans.factory.BeanDefinitionStoreException: 
  Failed to process import candidates for configuration class [com.project.App]; 
  nested exception is java.lang.IllegalArgumentException: 
  No auto configuration classes found in META-INF/spring.factories. 
  If you are using a custom packaging, make sure that file is correct.
  </code></pre>
  
  <p>I found <a href="https://stackoverflow.com/questions/39375016/failed-to-process-import-candidates-for-configuration-class" title="this">this</a> solution to use spring-boot-maven-plugin and modified my code as shown below.</p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;
          &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;fork&gt;true&lt;/fork&gt;
                &lt;mainClass&gt;com.project.App&lt;/mainClass&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                &lt;execution&gt;
                  &lt;goals&gt;
                    &lt;goal&gt;repackage&lt;/goal&gt;
                  &lt;/goals&gt;
                &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>The error was fixed. However, the jar created through this process does not contain dependencies. Is it possible to build jar with dependencies using spring-boot-maven-plugin? Kindly suggest a solution.</p>