Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5791

slf4-api dissapears from classpath with 3.3.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.3.1
    • None
    • Class Loading
    • None
    • OS X, Hotspot 1.7.0_75

    Description

      I have a plugin where I fetch the classpath from the current thread's classloader: https://github.com/gatling/gatling-maven/blob/gatling-maven-parent-2.1.2/gatling-maven-plugin/src/main/java/io/gatling/mojo/GatlingMojo.java#L256

      slf4j-api is in the project's compile scope:
      [INFO] — maven-dependency-plugin:2.8:tree (default-cli) @ gatling-sample21
      ...
      [INFO] | | +- org.slf4j:slf4j-api:jar:1.7.10:compile
      ...

      Until maven 3.2.5 included, the slf4j-api is indeed in the current thread's classloader:
      uri=/Users/slandelle/.m2/repository/org/slf4j/slf4j-api/1.7.10/slf4j-api-1.7.10.jar

      But it's missing when running when 3.3.1. I checked that the parent Classloader is null.

      This happens ONLY with slf4j-api! All the other project dependencies jars are properly passed.

      Please advise.

      Attachments

        Activity

          People

            Unassigned Unassigned
            slandelle St├ęphane Landelle
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: