title: How to stop logback-classic from reappearing in m2 repository when running mvn package
body: <p>I am running into the following error when loading the application context</p>
  
  <pre class="lang-sh prettyprint-override"><code>SLF4J: Class path contains multiple SLF4J bindings.
  SLF4J: Found binding in [jar:file:/C:.../repository/org/slf4j/slf4j-nop/1.7.30/slf4j-nop-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  SLF4J: Found binding in [jar:file:/C:.../repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
  SLF4J: Actual binding is of type [org.slf4j.helpers.NOPLoggerFactory]
  </code></pre>
  
  <p>and since I want to keep slf4j, which comes with Lombok, I tried deleting the folder <code>logback-classic/1.2.3</code>. But it keeps coming back whenever I run <code>mvn package</code>, so there's gotta be something in my pom that's reinstalling it, but it's never specifically referenced so there has to be some inheritance hullaballoo happening.</p>
  
  <p><strong>pom.xml</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;project&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &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.3.0.RELEASE&lt;/version&gt;
          &lt;relativePath/&gt;
      &lt;/parent&gt;
      &lt;groupId&gt;**********&lt;/groupId&gt;
      &lt;artifactId&gt;rest&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;rest&lt;/name&gt;
  
      &lt;properties&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
          &lt;endpoints.project.id&gt;**********&lt;/endpoints.project.id&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.endpoints&lt;/groupId&gt;
              &lt;artifactId&gt;endpoints-framework&lt;/artifactId&gt;
              &lt;version&gt;2.2.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- [START api_management] --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.endpoints&lt;/groupId&gt;
              &lt;artifactId&gt;endpoints-management-control-appengine-all&lt;/artifactId&gt;
              &lt;version&gt;1.0.12&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- [END api_management] --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.appengine&lt;/groupId&gt;
              &lt;artifactId&gt;appengine-api-1.0-sdk&lt;/artifactId&gt;
              &lt;version&gt;1.9.80&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
              &lt;version&gt;3.1.0&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.inject&lt;/groupId&gt;
              &lt;artifactId&gt;javax.inject&lt;/artifactId&gt;
              &lt;version&gt;1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
              &lt;artifactId&gt;lombok&lt;/artifactId&gt;
              &lt;optional&gt;true&lt;/optional&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.junit.vintage&lt;/groupId&gt;
                      &lt;artifactId&gt;junit-vintage-engine&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &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;plugin&gt;
                  &lt;groupId&gt;com.google.cloud.tools&lt;/groupId&gt;
                  &lt;artifactId&gt;appengine-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.2.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;!-- deploy configuration --&gt;
                      &lt;projectId&gt;GCLOUD_CONFIG&lt;/projectId&gt;
                      &lt;version&gt;GCLOUD_CONFIG&lt;/version&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;!-- [START endpoints_plugin] --&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;com.google.cloud.tools&lt;/groupId&gt;
                  &lt;artifactId&gt;endpoints-framework-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.0.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;!-- plugin configuration --&gt;
                      &lt;hostname&gt;${endpoints.project.id}.appspot.com&lt;/hostname&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;!-- [END endpoints_plugin] --&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                  &lt;artifactId&gt;versions-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.7&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;phase&gt;compile&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;display-dependency-updates&lt;/goal&gt;
                              &lt;goal&gt;display-plugin-updates&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>If anyone could help finding the problematic dependency or help me figure out how to find it and get rid of the slf4j error, that would be great.</p>