title: Unable to deploy Spring Boot application to Elastic Beanstalk
body: <p>So I've uploaded my Jar file created with the pom file below using maven and I'm having the errors in the logs and can't figure out what the problem is. The Spring Boot both builds and runs fine locally but won't work when trying to deploy.</p>
  <p>The logs give me this error</p>
  <p><code> Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: org/springframework/boot/SpringApplication</code></p>
  <p>and my build in my pom file is</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;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  <p>I've tried loads of different things but am coming at a loss. Any help would be appreciated.</p>