[ https://issues.apache.org/jira/browse/SUREFIRE-1464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Frank Seidinger updated SUREFIRE-1464: -------------------------------------- Description: I'm testing a spring-boot application using current spring-boot-startet When running the integration tests I get the following output from SLF4J: {{SLF4J: The requested version 1.5.6 by your slf4j binding is not compatible with [1.6, 1.7]}} And afterwords a lot of {{AbstracMethodError}} failures. Here is one examples: ``` java.lang.AbstractMethodError: org.slf4j.impl.JDK14LoggerAdapter.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V ``` The version 1.5.6 reported by SLF4J is not any dependency of my project but a direct dependency of the maven-failsafe-plugin, whereas my project uses slf4j 1.7.22. The relevant dependencies reported by {{mvn dependency:tree -Dverbose -Dscope=test}} are: {{ [INFO] +- org.axonframework:axon-core:jar:3.1:compile [INFO] | +- (org.slf4j:slf4j-api:jar:1.7.25:compile - version managed from 1.7.22; omitted for duplicate) [INFO] | +- com.thoughtworks.xstream:xstream:jar:1.4.9:compile [INFO] | \- xpp3:xpp3:jar:1.1.4c:compile [INFO] +- org.springframework:spring-core:jar:4.3.13.RELEASE:compile [INFO] | \- commons-logging:commons-logging:jar:1.2:compile [INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:1.5.9.RELEASE:compile [INFO] | +- org.springframework.boot:spring-boot-starter:jar:1.5.9.RELEASE:compile [INFO] | | +- org.springframework.boot:spring-boot:jar:1.5.9.RELEASE:compile [INFO] | | | +- (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | \- (org.springframework:spring-context:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | +- org.springframework.boot:spring-boot-autoconfigure:jar:1.5.9.RELEASE:compile [INFO] | | | \- (org.springframework.boot:spring-boot:jar:1.5.9.RELEASE:compile - omitted for duplicate) [INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:1.5.9.RELEASE:compile [INFO] | | | +- ch.qos.logback:logback-classic:jar:1.1.11:compile [INFO] | | | | +- ch.qos.logback:logback-core:jar:1.1.11:compile [INFO] | | | | \- (org.slf4j:slf4j-api:jar:1.7.25:compile - version managed from 1.7.22; omitted for duplicate) [INFO] | | | +- org.slf4j:jcl-over-slf4j:jar:1.7.25:compile [INFO] | | | | \- (org.slf4j:slf4j-api:jar:1.7.25:compile - version managed from 1.7.22; omitted for duplicate) [INFO] | | | +- org.slf4j:jul-to-slf4j:jar:1.7.25:compile [INFO] | | | | \- (org.slf4j:slf4j-api:jar:1.7.25:compile - version managed from 1.7.22; omitted for duplicate) [INFO] | | | \- org.slf4j:log4j-over-slf4j:jar:1.7.25:compile [INFO] | | | \- (org.slf4j:slf4j-api:jar:1.7.25:compile - version managed from 1.7.22; omitted for duplicate) [INFO] | | +- (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | \- org.yaml:snakeyaml:jar:1.17:runtime [INFO] | +- org.springframework.data:spring-data-jpa:jar:1.11.9.RELEASE:compile [INFO] | | +- org.springframework.data:spring-data-commons:jar:1.13.9.RELEASE:compile [INFO] | | | +- (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | +- (org.springframework:spring-beans:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | +- (org.slf4j:slf4j-api:jar:1.7.25:compile - version managed from 1.7.22; omitted for duplicate) [INFO] | | | \- (org.slf4j:jcl-over-slf4j:jar:1.7.25:runtime - omitted for duplicate) [INFO] | | +- org.springframework:spring-orm:jar:4.3.13.RELEASE:compile [INFO] | | | +- (org.springframework:spring-beans:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | +- (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | +- (org.springframework:spring-jdbc:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | \- (org.springframework:spring-tx:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | +- org.springframework:spring-context:jar:4.3.13.RELEASE:compile [INFO] | | | +- (org.springframework:spring-aop:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | +- (org.springframework:spring-beans:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | +- (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | \- (org.springframework:spring-expression:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | +- (org.springframework:spring-aop:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | +- org.springframework:spring-tx:jar:4.3.13.RELEASE:compile [INFO] | | | +- (org.springframework:spring-beans:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | \- (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | +- org.springframework:spring-beans:jar:4.3.13.RELEASE:compile [INFO] | | | \- (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | +- (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | +- (org.slf4j:slf4j-api:jar:1.7.25:compile - version managed from 1.7.22; omitted for duplicate) [INFO] | | \- (org.slf4j:jcl-over-slf4j:jar:1.7.25:compile - scope updated from runtime; omitted for duplicate) [INFO] | \- org.springframework:spring-aspects:jar:4.3.13.RELEASE:compile [INFO] | \- (org.aspectj:aspectjweaver:jar:1.8.13:compile - version managed from 1.8.9; omitted for duplicate) [INFO] +- org.slf4j:slf4j-api:jar:1.7.25:compile [INFO] +- org.javers:javers-core:jar:3.7.8:test [INFO] | +- (org.slf4j:slf4j-api:jar:1.7.25:test - version managed from 1.7.22; omitted for duplicate) [INFO] | +- com.google.code.gson:gson:jar:2.8.2:test (version managed from 2.8.1) [INFO] | +- org.picocontainer:picocontainer:jar:2.15:test [INFO] | \- io.github.lukehutch:fast-classpath-scanner:jar:2.4.7:test }} The problem does not exists with the surefire-plugin doing unit tests in the same project. was: I'm testing a spring-boot application using current spring-boot-startet When running the integration tests I get the following output from SLF4J: {{SLF4J: The requested version 1.5.6 by your slf4j binding is not compatible with [1.6, 1.7]}} And afterwords a lot of {{AbstracMethodError}} failures. Here is one examples: bq. java.lang.AbstractMethodError: org.slf4j.impl.JDK14LoggerAdapter.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V bq. The version 1.5.6 reported by SLF4J is not any dependency of my project but a direct dependency of the maven-failsafe-plugin, whereas my project uses slf4j 1.7.22. The relevant dependencies reported by {{mvn dependency:tree -Dverbose -Dscope=test}} are: {{ [INFO] +- org.axonframework:axon-core:jar:3.1:compile [INFO] | +- (org.slf4j:slf4j-api:jar:1.7.25:compile - version managed from 1.7.22; omitted for duplicate) [INFO] | +- com.thoughtworks.xstream:xstream:jar:1.4.9:compile [INFO] | \- xpp3:xpp3:jar:1.1.4c:compile [INFO] +- org.springframework:spring-core:jar:4.3.13.RELEASE:compile [INFO] | \- commons-logging:commons-logging:jar:1.2:compile [INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:1.5.9.RELEASE:compile [INFO] | +- org.springframework.boot:spring-boot-starter:jar:1.5.9.RELEASE:compile [INFO] | | +- org.springframework.boot:spring-boot:jar:1.5.9.RELEASE:compile [INFO] | | | +- (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | \- (org.springframework:spring-context:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | +- org.springframework.boot:spring-boot-autoconfigure:jar:1.5.9.RELEASE:compile [INFO] | | | \- (org.springframework.boot:spring-boot:jar:1.5.9.RELEASE:compile - omitted for duplicate) [INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:1.5.9.RELEASE:compile [INFO] | | | +- ch.qos.logback:logback-classic:jar:1.1.11:compile [INFO] | | | | +- ch.qos.logback:logback-core:jar:1.1.11:compile [INFO] | | | | \- (org.slf4j:slf4j-api:jar:1.7.25:compile - version managed from 1.7.22; omitted for duplicate) [INFO] | | | +- org.slf4j:jcl-over-slf4j:jar:1.7.25:compile [INFO] | | | | \- (org.slf4j:slf4j-api:jar:1.7.25:compile - version managed from 1.7.22; omitted for duplicate) [INFO] | | | +- org.slf4j:jul-to-slf4j:jar:1.7.25:compile [INFO] | | | | \- (org.slf4j:slf4j-api:jar:1.7.25:compile - version managed from 1.7.22; omitted for duplicate) [INFO] | | | \- org.slf4j:log4j-over-slf4j:jar:1.7.25:compile [INFO] | | | \- (org.slf4j:slf4j-api:jar:1.7.25:compile - version managed from 1.7.22; omitted for duplicate) [INFO] | | +- (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | \- org.yaml:snakeyaml:jar:1.17:runtime [INFO] | +- org.springframework.data:spring-data-jpa:jar:1.11.9.RELEASE:compile [INFO] | | +- org.springframework.data:spring-data-commons:jar:1.13.9.RELEASE:compile [INFO] | | | +- (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | +- (org.springframework:spring-beans:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | +- (org.slf4j:slf4j-api:jar:1.7.25:compile - version managed from 1.7.22; omitted for duplicate) [INFO] | | | \- (org.slf4j:jcl-over-slf4j:jar:1.7.25:runtime - omitted for duplicate) [INFO] | | +- org.springframework:spring-orm:jar:4.3.13.RELEASE:compile [INFO] | | | +- (org.springframework:spring-beans:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | +- (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | +- (org.springframework:spring-jdbc:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | \- (org.springframework:spring-tx:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | +- org.springframework:spring-context:jar:4.3.13.RELEASE:compile [INFO] | | | +- (org.springframework:spring-aop:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | +- (org.springframework:spring-beans:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | +- (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | \- (org.springframework:spring-expression:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | +- (org.springframework:spring-aop:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | +- org.springframework:spring-tx:jar:4.3.13.RELEASE:compile [INFO] | | | +- (org.springframework:spring-beans:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | | \- (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | +- org.springframework:spring-beans:jar:4.3.13.RELEASE:compile [INFO] | | | \- (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | +- (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for duplicate) [INFO] | | +- (org.slf4j:slf4j-api:jar:1.7.25:compile - version managed from 1.7.22; omitted for duplicate) [INFO] | | \- (org.slf4j:jcl-over-slf4j:jar:1.7.25:compile - scope updated from runtime; omitted for duplicate) [INFO] | \- org.springframework:spring-aspects:jar:4.3.13.RELEASE:compile [INFO] | \- (org.aspectj:aspectjweaver:jar:1.8.13:compile - version managed from 1.8.9; omitted for duplicate) [INFO] +- org.slf4j:slf4j-api:jar:1.7.25:compile [INFO] +- org.javers:javers-core:jar:3.7.8:test [INFO] | +- (org.slf4j:slf4j-api:jar:1.7.25:test - version managed from 1.7.22; omitted for duplicate) [INFO] | +- com.google.code.gson:gson:jar:2.8.2:test (version managed from 2.8.1) [INFO] | +- org.picocontainer:picocontainer:jar:2.15:test [INFO] | \- io.github.lukehutch:fast-classpath-scanner:jar:2.4.7:test }} The problem does not exists with the surefire-plugin doing unit tests in the same project. > Failsafe plugin exposes slf4j-jdk14 dependency > ---------------------------------------------- > > Key: SUREFIRE-1464 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1464 > Project: Maven Surefire > Issue Type: Bug > Components: classloading, JUnit 5.x support, Maven Failsafe Plugin > Affects Versions: 2.19.1 > Environment: Windows 10 Pro > Oracle Java(TM) SE Runtime Environment (build 1.8.0_152-b16) > Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; > 2017-10-18T09:58:13+02:00) > Reporter: Frank Seidinger > > I'm testing a spring-boot application using current spring-boot-startet > When running the integration tests I get the following output from SLF4J: > {{SLF4J: The requested version 1.5.6 by your slf4j binding is not compatible > with [1.6, 1.7]}} > And afterwords a lot of {{AbstracMethodError}} failures. Here is one examples: > ``` > java.lang.AbstractMethodError: > org.slf4j.impl.JDK14LoggerAdapter.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V > ``` > The version 1.5.6 reported by SLF4J is not any dependency of my project but a > direct dependency of the maven-failsafe-plugin, whereas my project uses slf4j > 1.7.22. > The relevant dependencies reported by {{mvn dependency:tree -Dverbose > -Dscope=test}} are: > {{ > [INFO] +- org.axonframework:axon-core:jar:3.1:compile > [INFO] | +- (org.slf4j:slf4j-api:jar:1.7.25:compile - version managed from > 1.7.22; omitted for duplicate) > [INFO] | +- com.thoughtworks.xstream:xstream:jar:1.4.9:compile > [INFO] | \- xpp3:xpp3:jar:1.1.4c:compile > [INFO] +- org.springframework:spring-core:jar:4.3.13.RELEASE:compile > [INFO] | \- commons-logging:commons-logging:jar:1.2:compile > [INFO] +- > org.springframework.boot:spring-boot-starter-data-jpa:jar:1.5.9.RELEASE:compile > [INFO] | +- > org.springframework.boot:spring-boot-starter:jar:1.5.9.RELEASE:compile > [INFO] | | +- org.springframework.boot:spring-boot:jar:1.5.9.RELEASE:compile > [INFO] | | | +- > (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for > duplicate) > [INFO] | | | \- > (org.springframework:spring-context:jar:4.3.13.RELEASE:compile - omitted for > duplicate) > [INFO] | | +- > org.springframework.boot:spring-boot-autoconfigure:jar:1.5.9.RELEASE:compile > [INFO] | | | \- > (org.springframework.boot:spring-boot:jar:1.5.9.RELEASE:compile - omitted for > duplicate) > [INFO] | | +- > org.springframework.boot:spring-boot-starter-logging:jar:1.5.9.RELEASE:compile > [INFO] | | | +- ch.qos.logback:logback-classic:jar:1.1.11:compile > [INFO] | | | | +- ch.qos.logback:logback-core:jar:1.1.11:compile > [INFO] | | | | \- (org.slf4j:slf4j-api:jar:1.7.25:compile - version > managed from 1.7.22; omitted for duplicate) > [INFO] | | | +- org.slf4j:jcl-over-slf4j:jar:1.7.25:compile > [INFO] | | | | \- (org.slf4j:slf4j-api:jar:1.7.25:compile - version > managed from 1.7.22; omitted for duplicate) > [INFO] | | | +- org.slf4j:jul-to-slf4j:jar:1.7.25:compile > [INFO] | | | | \- (org.slf4j:slf4j-api:jar:1.7.25:compile - version > managed from 1.7.22; omitted for duplicate) > [INFO] | | | \- org.slf4j:log4j-over-slf4j:jar:1.7.25:compile > [INFO] | | | \- (org.slf4j:slf4j-api:jar:1.7.25:compile - version > managed from 1.7.22; omitted for duplicate) > [INFO] | | +- (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - > omitted for duplicate) > [INFO] | | \- org.yaml:snakeyaml:jar:1.17:runtime > [INFO] | +- > org.springframework.data:spring-data-jpa:jar:1.11.9.RELEASE:compile > [INFO] | | +- > org.springframework.data:spring-data-commons:jar:1.13.9.RELEASE:compile > [INFO] | | | +- > (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for > duplicate) > [INFO] | | | +- > (org.springframework:spring-beans:jar:4.3.13.RELEASE:compile - omitted for > duplicate) > [INFO] | | | +- (org.slf4j:slf4j-api:jar:1.7.25:compile - version managed > from 1.7.22; omitted for duplicate) > [INFO] | | | \- (org.slf4j:jcl-over-slf4j:jar:1.7.25:runtime - omitted for > duplicate) > [INFO] | | +- org.springframework:spring-orm:jar:4.3.13.RELEASE:compile > [INFO] | | | +- > (org.springframework:spring-beans:jar:4.3.13.RELEASE:compile - omitted for > duplicate) > [INFO] | | | +- > (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for > duplicate) > [INFO] | | | +- > (org.springframework:spring-jdbc:jar:4.3.13.RELEASE:compile - omitted for > duplicate) > [INFO] | | | \- (org.springframework:spring-tx:jar:4.3.13.RELEASE:compile > - omitted for duplicate) > [INFO] | | +- org.springframework:spring-context:jar:4.3.13.RELEASE:compile > [INFO] | | | +- (org.springframework:spring-aop:jar:4.3.13.RELEASE:compile > - omitted for duplicate) > [INFO] | | | +- > (org.springframework:spring-beans:jar:4.3.13.RELEASE:compile - omitted for > duplicate) > [INFO] | | | +- > (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for > duplicate) > [INFO] | | | \- > (org.springframework:spring-expression:jar:4.3.13.RELEASE:compile - omitted > for duplicate) > [INFO] | | +- (org.springframework:spring-aop:jar:4.3.13.RELEASE:compile - > omitted for duplicate) > [INFO] | | +- org.springframework:spring-tx:jar:4.3.13.RELEASE:compile > [INFO] | | | +- > (org.springframework:spring-beans:jar:4.3.13.RELEASE:compile - omitted for > duplicate) > [INFO] | | | \- > (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for > duplicate) > [INFO] | | +- org.springframework:spring-beans:jar:4.3.13.RELEASE:compile > [INFO] | | | \- > (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - omitted for > duplicate) > [INFO] | | +- (org.springframework:spring-core:jar:4.3.13.RELEASE:compile - > omitted for duplicate) > [INFO] | | +- (org.slf4j:slf4j-api:jar:1.7.25:compile - version managed > from 1.7.22; omitted for duplicate) > [INFO] | | \- (org.slf4j:jcl-over-slf4j:jar:1.7.25:compile - scope updated > from runtime; omitted for duplicate) > [INFO] | \- org.springframework:spring-aspects:jar:4.3.13.RELEASE:compile > [INFO] | \- (org.aspectj:aspectjweaver:jar:1.8.13:compile - version > managed from 1.8.9; omitted for duplicate) > [INFO] +- org.slf4j:slf4j-api:jar:1.7.25:compile > [INFO] +- org.javers:javers-core:jar:3.7.8:test > [INFO] | +- (org.slf4j:slf4j-api:jar:1.7.25:test - version managed from > 1.7.22; omitted for duplicate) > [INFO] | +- com.google.code.gson:gson:jar:2.8.2:test (version managed from > 2.8.1) > [INFO] | +- org.picocontainer:picocontainer:jar:2.15:test > [INFO] | \- io.github.lukehutch:fast-classpath-scanner:jar:2.4.7:test > }} > The problem does not exists with the surefire-plugin doing unit tests in the > same project. -- This message was sent by Atlassian JIRA (v6.4.14#64029)