title: ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder
body: <p>I am converting a spring app to spring-boot, using boot-starter-parent version: 2.0.4.RELEASE. When I build using
  mvn install, its is going through fine, but when I am trying to run the app using command:<code>mvn spring-boot:run -Dspring.profiles.active=dev</code>, I am getting this exception:
  ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder</p>
  
  <p>Here are dependencies in my pom:</p>
  
  <pre><code>&lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;2.0.4.RELEASE&lt;/version&gt;
  &lt;/parent&gt;
  
  &lt;dependencies&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
      &lt;artifactId&gt;spring-cloud-starter-sleuth&lt;/artifactId&gt;
      &lt;version&gt;2.0.1.RELEASE&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
      &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
      &lt;version&gt;1.7.24&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
      &lt;artifactId&gt;logback-classic&lt;/artifactId&gt;
      &lt;version&gt;1.3.0-alpha4&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
      &lt;artifactId&gt;logback-core&lt;/artifactId&gt;
      &lt;version&gt;1.3.0-alpha4&lt;/version&gt;
    &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>I have tried following the advice from <a href="https://stackoverflow.com/questions/3737992/noclassdeffounderror-org-slf4j-impl-staticloggerbinder">this question</a>, and using new and old versions of logback (both core and classic) dependencies, and adding the 'slf4j-log4j12' and 'slf4j-simple' but still getting the exception. Stack Trace is:</p>
  
  <blockquote>
    <p>java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
        at org.springframework.boot.logging.logback.LogbackLoggingSystem.getLoggerContext (LogbackLoggingSystem.java:285)
        at org.springframework.boot.logging.logback.LogbackLoggingSystem.beforeInitialize (LogbackLoggingSystem.java:102)
        at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationStartingEvent (LoggingApplicationListener.java:191)
        at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent (LoggingApplicationListener.java:170)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener (SimpleApplicationEventMulticaster.java:167)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent (SimpleApplicationEventMulticaster.java:139)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent (SimpleApplicationEventMulticaster.java:122)
        at org.springframework.boot.context.event.EventPublishingRunListener.starting (EventPublishingRunListener.java:68)
        at org.springframework.boot.SpringApplicationRunListeners.starting (SpringApplicationRunListeners.java:48)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:316)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:1258)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:1246)
        at com.hbo.esp.MyApplication.main (MyApplication.java:17)
        at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)</p>
  </blockquote>