title: Log4j2 could not find a logging implementation with Spring Boot
body: <p>I'm getting this error trying to use log4j2 with spring boot.</p>
  
  <pre><code>ERROR StatusLogger Log4j2 could not find a logging implementation. 
  Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
  </code></pre>
  
  <p>I'm have followed this guide: <a href="http://docs.spring.io/spring-boot/docs/current/reference/html/howto-logging.html#howto-configure-log4j-for-logging" rel="noreferrer">http://docs.spring.io/spring-boot/docs/current/reference/html/howto-logging.html#howto-configure-log4j-for-logging</a> - and also added the two log4j2-dependencies from <a href="https://logging.apache.org/log4j/2.x/maven-artifacts.html" rel="noreferrer">https://logging.apache.org/log4j/2.x/maven-artifacts.html</a></p>
  
  <p>My dependency:tree looks like this:</p>
  
  <pre><code>[INFO] --- maven-dependency-plugin:2.10:tree (default-cli) @  musikkjulekalender ---
  [INFO] no.saiboten:musikkjulekalender:war:1.0-SNAPSHOT
  [INFO] +- org.springframework.boot:spring-boot-starter-web:jar:1.4.0.RELEASE:compile
  [INFO] |  +- org.hibernate:hibernate-validator:jar:5.2.4.Final:compile
  [INFO] |  |  +- javax.validation:validation-api:jar:1.1.0.Final:compile
  [INFO] |  |  +- org.jboss.logging:jboss-logging:jar:3.3.0.Final:compile
  [INFO] |  |  \- com.fasterxml:classmate:jar:1.3.1:compile
  [INFO] |  +- org.springframework:spring-web:jar:4.3.2.RELEASE:compile
  [INFO] |  \- org.springframework:spring-webmvc:jar:4.3.2.RELEASE:compile
  [INFO] +- org.springframework.boot:spring-boot-starter-jetty:jar:1.4.0.RELEASE:compile
  [INFO] |  +- org.eclipse.jetty:jetty-servlets:jar:9.3.11.v20160721:compile
  [INFO] |  |  +- org.eclipse.jetty:jetty-continuation:jar:9.3.11.v20160721:compile
  [INFO] |  |  +- org.eclipse.jetty:jetty-http:jar:9.3.11.v20160721:compile
  [INFO] |  |  \- org.eclipse.jetty:jetty-io:jar:9.3.11.v20160721:compile
  [INFO] |  +- org.eclipse.jetty:jetty-webapp:jar:9.3.11.v20160721:compile
  [INFO] |  |  +- org.eclipse.jetty:jetty-xml:jar:9.3.11.v20160721:compile
  [INFO] |  |  \- org.eclipse.jetty:jetty-servlet:jar:9.3.11.v20160721:compile
  [INFO] |  |     \- org.eclipse.jetty:jetty-security:jar:9.3.11.v20160721:compile
  [INFO] |  +- org.eclipse.jetty.websocket:websocket-server:jar:9.3.11.v20160721:compile
  [INFO] |  |  +- org.eclipse.jetty.websocket:websocket-common:jar:9.3.11.v20160721:compile
  [INFO] |  |  |  \- org.eclipse.jetty.websocket:websocket-api:jar:9.3.11.v20160721:compile
  [INFO] |  |  +- org.eclipse.jetty.websocket:websocket-client:jar:9.3.11.v20160721:compile
  [INFO] |  |  \- org.eclipse.jetty.websocket:websocket-servlet:jar:9.3.11.v20160721:compile
  [INFO] |  \- org.eclipse.jetty.websocket:javax-websocket-server-impl:jar:9.3.11.v20160721:compile
  [INFO] |     +- org.eclipse.jetty:jetty-annotations:jar:9.3.11.v20160721:compile
  [INFO] |     |  +- org.eclipse.jetty:jetty-plus:jar:9.3.11.v20160721:compile
  [INFO] |     |  +- javax.annotation:javax.annotation-api:jar:1.2:compile
  [INFO] |     |  +- org.ow2.asm:asm:jar:5.0.1:compile
  [INFO] |     |  \- org.ow2.asm:asm-commons:jar:5.0.1:compile
  [INFO] |     |     \- org.ow2.asm:asm-tree:jar:5.0.1:compile
  [INFO] |     +- org.eclipse.jetty.websocket:javax-websocket-client-impl:jar:9.3.11.v20160721:compile
  [INFO] |     \- javax.websocket:javax.websocket-api:jar:1.0:compile
  [INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:1.4.0.RELEASE:compile
  [INFO] |  +- org.springframework.boot:spring-boot-starter-aop:jar:1.4.0.RELEASE:compile
  [INFO] |  |  \- org.aspectj:aspectjweaver:jar:1.8.9:compile
  [INFO] |  +- org.springframework.boot:spring-boot-starter-jdbc:jar:1.4.0.RELEASE:compile
  [INFO] |  |  +- org.apache.tomcat:tomcat-jdbc:jar:8.5.4:compile
  [INFO] |  |  |  \- org.apache.tomcat:tomcat-juli:jar:8.5.4:compile
  [INFO] |  |  \- org.springframework:spring-jdbc:jar:4.3.2.RELEASE:compile
  [INFO] |  +- org.hibernate:hibernate-core:jar:5.0.9.Final:compile
  [INFO] |  |  +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile
  [INFO] |  |  +- org.javassist:javassist:jar:3.20.0-GA:compile
  [INFO] |  |  +- antlr:antlr:jar:2.7.7:compile
  [INFO] |  |  +- org.jboss:jandex:jar:2.0.0.Final:compile
  [INFO] |  |  +- dom4j:dom4j:jar:1.6.1:compile
  [INFO] |  |  |  \- xml-apis:xml-apis:jar:1.4.01:compile
  [INFO] |  |  \- org.hibernate.common:hibernate-commons-annotations:jar:5.0.1.Final:compile
  [INFO] |  +- org.hibernate:hibernate-entitymanager:jar:5.0.9.Final:compile
  [INFO] |  +- javax.transaction:javax.transaction-api:jar:1.2:compile
  [INFO] |  \- org.springframework:spring-aspects:jar:4.3.2.RELEASE:compile
  [INFO] +- com.h2database:h2:jar:1.4.192:compile
  [INFO] +- org.springframework.boot:spring-boot-starter-test:jar:1.4.0.RELEASE:test
  [INFO] |  +- org.springframework.boot:spring-boot-test:jar:1.4.0.RELEASE:test
  [INFO] |  +- org.springframework.boot:spring-boot-test-autoconfigure:jar:1.4.0.RELEASE:test
  [INFO] |  +- com.jayway.jsonpath:json-path:jar:2.2.0:test
  [INFO] |  |  \- net.minidev:json-smart:jar:2.2.1:test
  [INFO] |  |     \- net.minidev:accessors-smart:jar:1.1:test
  [INFO] |  +- org.assertj:assertj-core:jar:2.5.0:test
  [INFO] |  +- org.mockito:mockito-core:jar:1.10.19:test
  [INFO] |  |  \- org.objenesis:objenesis:jar:2.1:test
  [INFO] |  +- org.hamcrest:hamcrest-core:jar:1.3:compile
  [INFO] |  +- org.hamcrest:hamcrest-library:jar:1.3:test
  [INFO] |  +- org.skyscreamer:jsonassert:jar:1.3.0:test
  [INFO] |  |  \- org.json:json:jar:20140107:test
  [INFO] |  +- org.springframework:spring-core:jar:4.3.2.RELEASE:compile
  [INFO] |  \- org.springframework:spring-test:jar:4.3.2.RELEASE:test
  [INFO] +- org.springframework.boot:spring-boot-starter:jar:1.4.0.RELEASE:compile
  [INFO] |  +- org.springframework.boot:spring-boot:jar:1.4.0.RELEASE:compile
  [INFO] |  +- org.springframework.boot:spring-boot-autoconfigure:jar:1.4.0.RELEASE:compile
  [INFO] |  \- org.yaml:snakeyaml:jar:1.17:runtime
  [INFO] +- org.springframework.boot:spring-boot-starter-log4j2:jar:1.4.0.RELEASE:compile
  [INFO] |  +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.6.2:compile
  [INFO] |  +- org.slf4j:jcl-over-slf4j:jar:1.7.21:compile
  [INFO] |  \- org.slf4j:jul-to-slf4j:jar:1.7.21:compile
  [INFO] +- org.apache.logging.log4j:log4j-api:jar:2.6.2:compile
  [INFO] +- org.apache.logging.log4j:log4j-core:jar:2.6.2:compile
  [INFO] +- org.apache.commons:commons-lang3:jar:3.3.2:compile
  [INFO] +- org.mongodb:mongo-java-driver:jar:2.12.4:compile
  [INFO] +- org.springframework.data:spring-data-mongodb:jar:1.9.2.RELEASE:compile
  [INFO] |  +- org.springframework:spring-tx:jar:4.3.2.RELEASE:compile
  [INFO] |  +- org.springframework:spring-context:jar:4.3.2.RELEASE:compile
  [INFO] |  +- org.springframework:spring-beans:jar:4.3.2.RELEASE:compile
  [INFO] |  +- org.springframework:spring-expression:jar:4.3.2.RELEASE:compile
  [INFO] |  +- org.springframework.data:spring-data-commons:jar:1.12.2.RELEASE:compile
  [INFO] |  \- org.slf4j:slf4j-api:jar:1.7.21:compile
  [INFO] +- com.google.api-client:google-api-client:jar:1.18.0-rc:compile
  [INFO] +- com.google.http-client:google-http-client-jackson2:jar:1.18.0-rc:compile
  [INFO] |  \- com.google.http-client:google-http-client:jar:1.18.0-rc:compile
  [INFO] +- com.google.oauth-client:google-oauth-client:jar:1.18.0-rc:compile
  [INFO] |  \- com.google.code.findbugs:jsr305:jar:1.3.9:compile
  [INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.8.2:compile
  [INFO] |  \- com.fasterxml.jackson.core:jackson-annotations:jar:2.8.1:compile
  [INFO] +- com.google.apis:google-api-services-oauth2:jar:v2-rev81-1.19.0:compile
  [INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.8.2:compile
  [INFO] +- org.mongodb.morphia:morphia:jar:0.107:compile
  [INFO] +- org.springframework.security:spring-security-web:jar:4.1.1.RELEASE:compile
  [INFO] |  +- aopalliance:aopalliance:jar:1.0:compile
  [INFO] |  \- org.springframework.security:spring-security-core:jar:4.1.1.RELEASE:compile
  [INFO] +- org.springframework.security:spring-security-config:jar:4.1.1.RELEASE:compile
  [INFO] |  \- org.springframework:spring-aop:jar:4.3.2.RELEASE:compile
  [INFO] +- org.springframework.social:spring-social-config:jar:1.1.4.RELEASE:compile
  [INFO] |  \- org.springframework.social:spring-social-web:jar:1.1.4.RELEASE:compile
  [INFO] |     \- javax.inject:javax.inject:jar:1:compile
  [INFO] +- org.springframework.social:spring-social-core:jar:1.1.4.RELEASE:compile
  [INFO] +- org.springframework.social:spring-social-facebook:jar:2.0.3.RELEASE:compile
  [INFO] +- org.apache.httpcomponents:httpclient:jar:4.3.6:compile
  [INFO] |  +- org.apache.httpcomponents:httpcore:jar:4.4.5:compile
  [INFO] |  \- commons-codec:commons-codec:jar:1.10:compile
  [INFO] +- org.mockito:mockito-all:jar:1.10.8:compile
  [INFO] +- junit:junit:jar:4.11:compile
  [INFO] +- org.eclipse.jetty:apache-jsp:jar:9.3.11.v20160721:provided
  [INFO] |  +- org.eclipse.jetty:jetty-util:jar:9.3.11.v20160721:compile
  [INFO] |  +- org.eclipse.jetty:jetty-server:jar:9.3.11.v20160721:compile
  [INFO] |  +- org.eclipse.jetty.toolchain:jetty-schemas:jar:3.1:provided
  [INFO] |  +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
  [INFO] |  +- org.mortbay.jasper:apache-jsp:jar:8.0.33:provided
  [INFO] |  |  \- org.mortbay.jasper:apache-el:jar:8.0.33:provided
  [INFO] |  \- org.eclipse.jdt.core.compiler:ecj:jar:4.4.2:provided
  [INFO] +- javax.servlet:jstl:jar:1.2:compile
  [INFO] +- org.springframework.data:spring-data-jpa:jar:1.10.2.RELEASE:compile
  [INFO] |  +- org.springframework:spring-orm:jar:4.3.2.RELEASE:compile
  [INFO] |  \- org.aspectj:aspectjrt:jar:1.8.9:compile
  [INFO] +- postgresql:postgresql:jar:9.1-901-1.jdbc4:compile
  [INFO] \- joda-time:joda-time:jar:2.9.4:compile
  </code></pre>
  
  <p>I have added the standard log4j2.xml-file to src/main/resources/config with the default config:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Configuration&gt;
    &lt;Appenders&gt;
      &lt;Console name="STDOUT" target="SYSTEM_OUT"&gt;
        &lt;PatternLayout pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/&gt;
      &lt;/Console&gt;
    &lt;/Appenders&gt;
    &lt;Loggers&gt;
      &lt;Logger name="org.apache.log4j.xml" level="info"/&gt;
      &lt;Root level="debug"&gt;
        &lt;AppenderRef ref="STDOUT"/&gt;
      &lt;/Root&gt;
    &lt;/Loggers&gt;
  &lt;/Configuration&gt;
  </code></pre>
  
  <p>Any guesses? I've tried running from within Spring Tool Suite and with the maven spring-boot plugin.</p>
  
  <p>By popular request, here is the complete pom.xml:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&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;1.4.0.RELEASE&lt;/version&gt;
      &lt;/parent&gt;
  
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;no.saiboten&lt;/groupId&gt;
      &lt;artifactId&gt;musikkjulekalender&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
      &lt;name&gt;Musikkjulekalender&lt;/name&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                      &lt;artifactId&gt;spring-boot-starter-tomcat&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-jetty&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.h2database&lt;/groupId&gt;
              &lt;artifactId&gt;h2&lt;/artifactId&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;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter&lt;/artifactId&gt;
               &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                      &lt;artifactId&gt;spring-boot-starter-logging&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-log4j2&lt;/artifactId&gt;
          &lt;/dependency&gt;
       &lt;dependency&gt;
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;
          &lt;version&gt;2.6.2&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
          &lt;version&gt;2.6.2&lt;/version&gt;
        &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
              &lt;artifactId&gt;commons-lang3&lt;/artifactId&gt;
              &lt;version&gt;3.3.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mongodb&lt;/groupId&gt;
              &lt;artifactId&gt;mongo-java-driver&lt;/artifactId&gt;
              &lt;version&gt;2.12.4&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
              &lt;artifactId&gt;spring-data-mongodb&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.api-client&lt;/groupId&gt;
              &lt;artifactId&gt;google-api-client&lt;/artifactId&gt;
              &lt;version&gt;1.18.0-rc&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.http-client&lt;/groupId&gt;
              &lt;artifactId&gt;google-http-client-jackson2&lt;/artifactId&gt;
              &lt;version&gt;1.18.0-rc&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.oauth-client&lt;/groupId&gt;
              &lt;artifactId&gt;google-oauth-client&lt;/artifactId&gt;
              &lt;version&gt;1.18.0-rc&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
              &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
              &lt;version&gt;2.8.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.apis&lt;/groupId&gt;
              &lt;artifactId&gt;google-api-services-oauth2&lt;/artifactId&gt;
              &lt;version&gt;v2-rev81-1.19.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
              &lt;artifactId&gt;jackson-core&lt;/artifactId&gt;
              &lt;version&gt;2.8.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mongodb.morphia&lt;/groupId&gt;
              &lt;artifactId&gt;morphia&lt;/artifactId&gt;
              &lt;version&gt;0.107&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
              &lt;artifactId&gt;spring-security-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
              &lt;artifactId&gt;spring-security-config&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.social&lt;/groupId&gt;
              &lt;artifactId&gt;spring-social-config&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.social&lt;/groupId&gt;
              &lt;artifactId&gt;spring-social-core&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.social&lt;/groupId&gt;
              &lt;artifactId&gt;spring-social-facebook&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
              &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
              &lt;version&gt;4.3.6&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mockito&lt;/groupId&gt;
              &lt;artifactId&gt;mockito-all&lt;/artifactId&gt;
              &lt;version&gt;1.10.8&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.11&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.eclipse.jetty&lt;/groupId&gt;
              &lt;artifactId&gt;apache-jsp&lt;/artifactId&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;jstl&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
              &lt;artifactId&gt;spring-data-jpa&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;postgresql&lt;/groupId&gt;
              &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
              &lt;version&gt;9.1-901-1.jdbc4&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;joda-time&lt;/groupId&gt;
              &lt;artifactId&gt;joda-time&lt;/artifactId&gt;
              &lt;version&gt;2.9.4&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;resources&gt;
              &lt;resource&gt;
                  &lt;directory&gt;src/main/resources&lt;/directory&gt;
              &lt;/resource&gt;
          &lt;/resources&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;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;useSystemClassLoader&gt;false&lt;/useSystemClassLoader&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;spring-releases&lt;/id&gt;
              &lt;name&gt;Spring Releases&lt;/name&gt;
              &lt;url&gt;https://repo.spring.io/libs-release&lt;/url&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;org.jboss.repository.releases&lt;/id&gt;
              &lt;name&gt;JBoss Maven Release Repository&lt;/name&gt;
              &lt;url&gt;https://repository.jboss.org/nexus/content/repositories/releases&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  
      &lt;pluginRepositories&gt;
          &lt;pluginRepository&gt;
              &lt;id&gt;spring-releases&lt;/id&gt;
              &lt;name&gt;Spring Releases&lt;/name&gt;
              &lt;url&gt;https://repo.spring.io/libs-release&lt;/url&gt;
          &lt;/pluginRepository&gt;
      &lt;/pluginRepositories&gt;
  
  &lt;/project&gt;
  </code></pre>