Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-7841

Need to exclude or shade netty lib to avoid [WARNING]

    XMLWordPrintableJSON

Details

    Description

      [Very minor, but can be good for newcomers]

      In process of mvn clean install -DskipTests the folowwing WARNING is happened:

      • org.apache.drill.exec:drill-jdbc-all:jar:1.19.0-SNAPSHOT
        • shade
          • netty-transport-native-epoll-4.0.48.Final-linux-x86_64.jar, netty-transport-native-epoll-4.1.45.Final.jar define 46 overlapping classes:
      [WARNING] netty-transport-native-epoll-4.0.48.Final-linux-x86_64.jar, netty-transport-native-epoll-4.1.45.Final.jar define 46 overlapping classes: 
      netty-transport-native-epoll-4.0.48.Final-linux-x86_64.jar, netty-transport-native-epoll-4.1.45.Final.jar define 46 overlapping classes: 
        - io.netty.channel.epoll.AbstractEpollStreamChannel$2
        - io.netty.channel.epoll.AbstractEpollServerChannel$EpollServerSocketUnsafe
        - io.netty.channel.epoll.EpollDatagramChannel
        - io.netty.channel.epoll.AbstractEpollStreamChannel$SpliceInChannelTask
        - io.netty.channel.epoll.NativeDatagramPacketArray
        - io.netty.channel.epoll.EpollSocketChannelConfig
        - io.netty.channel.epoll.EpollTcpInfo
        - io.netty.channel.epoll.EpollEventArray
        - io.netty.channel.epoll.EpollEventLoop
        - io.netty.channel.epoll.EpollSocketChannel
        - 36 more...
      netty-transport-native-epoll-4.0.48.Final-linux-x86_64.jar, netty-transport-native-unix-common-4.1.45.Final.jar define 15 overlapping classes: 
        - io.netty.channel.unix.Errors$NativeConnectException
        - io.netty.channel.unix.ServerDomainSocketChannel
        - io.netty.channel.unix.DomainSocketAddress
        - io.netty.channel.unix.Socket
        - io.netty.channel.unix.NativeInetAddress
        - io.netty.channel.unix.DomainSocketChannelConfig
        - io.netty.channel.unix.Errors$NativeIoException
        - io.netty.channel.unix.DomainSocketReadMode
        - io.netty.channel.unix.ErrorsStaticallyReferencedJniMethods
        - io.netty.channel.unix.UnixChannel
        - 5 more...
      maven-shade-plugin has detected that some class files are
      present in two or more JARs. When this happens, only one
      single version of the class is copied to the uber jar.
      Usually this is not harmful and you can skip these warnings,
      otherwise try to manually exclude artifacts based on
      mvn dependency:tree -Ddetail=true and the above output.
      See http://maven.apache.org/plugins/maven-shade-plugin/
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            vitalii Vitalii Diravka
            Igor Guzenko Igor Guzenko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: