Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1464

Failsafe plugin exposes slf4j-jdk14 dependency

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.19.1
    • 3.0.0-M4
    • None
    • 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)

    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 example:

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tibordigana Tibor Digana
            fseidinger Frank Seidinger
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment