Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-1664

Exclude org.slf4j.* in ratis-thirdparty-misc

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • thirdparty-1.0.2
    • thirdparty
    • None

    Description

      $mvn package -DskipTests
      ...
      [INFO] --- maven-shade-plugin:3.1.1:shade (default) @ ratis-examples ---
      ...
      [INFO] Including log4j:log4j:jar:1.2.17 in the shaded jar.
      [WARNING] slf4j-api-1.7.29.jar, ratis-thirdparty-misc-1.0.1.jar define 34 overlapping classes: 
      [WARNING]   - org.slf4j.helpers.SubstituteLogger
      [WARNING]   - org.slf4j.helpers.NamedLoggerBase
      [WARNING]   - org.slf4j.helpers.NOPMDCAdapter
      [WARNING]   - org.slf4j.MarkerFactory
      [WARNING]   - org.slf4j.helpers.BasicMarker
      [WARNING]   - org.slf4j.spi.LoggerFactoryBinder
      [WARNING]   - org.slf4j.MDC$MDCCloseable
      [WARNING]   - org.slf4j.spi.LocationAwareLogger
      [WARNING]   - org.slf4j.helpers.MessageFormatter
      [WARNING]   - org.slf4j.helpers.Util$ClassContextSecurityManager
      [WARNING]   - 24 more...
      [WARNING] maven-shade-plugin has detected that some class files are
      [WARNING] present in two or more JARs. When this happens, only one
      [WARNING] single version of the class is copied to the uber jar.
      [WARNING] Usually this is not harmful and you can skip these warnings,
      [WARNING] otherwise try to manually exclude artifacts based on
      [WARNING] mvn dependency:tree -Ddetail=true and the above output.
      [WARNING] See http://maven.apache.org/plugins/maven-shade-plugin/
      
      

      Attachments

        Issue Links

          Activity

            People

              liuyaolong Yaolong Liu
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h