Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-19455

Module 'flink-sql-connector-hive-2.3.6', 'flink-docs' and 'flnk-dist' build fail by maven-enforcer-plugin

    XMLWordPrintableJSON

Details

    Description

      I run command 'mvn clean package' in flink-sql-connector-hive-2.3.6, and it failed,

       Rule 0: org.apache.maven.plugins.enforcer.BannedDependencies failed with message:
      Found Banned Dependency: org.apache.kafka:kafka_2.10:jar:0.10.2.0
      Use 'mvn dependency:tree' to locate the source of the banned dependencies.
      

      For root pom has a rule as follow:

      bannedDependencies>
         <excludes combine.children="append">
            <exclude>*:*_2.12</exclude>
            <exclude>*:*_2.10</exclude>
         </excludes>
      </bannedDependencies>
      

      As for kafka_2.10 dependency is useless, So we can exclude it as follow:

      <dependency>
         <groupId>org.apache.hive</groupId>
         <artifactId>hive-exec</artifactId>
         <version>2.3.6</version>
         <exclusions>
            <exclusion>
               <groupId>log4j</groupId>
               <artifactId>log4j</artifactId>
            </exclusion>
            <exclusion>
               <groupId>org.slf4j</groupId>
               <artifactId>slf4j-log4j12</artifactId>
            </exclusion>
            <exclusion>
               <groupId>org.pentaho</groupId>
               <artifactId>pentaho-aggdesigner-algorithm</artifactId>
            </exclusion>
            <exclusion>
               <groupId>org.apache.kafka</groupId>
               <artifactId>kafka_2.10</artifactId>
            </exclusion>
         </exclusions>
      </dependency>

      It also failed in flink-docs and flink-disk module:

       Rule 0: org.apache.maven.plugins.enforcer.BannedDependencies failed with message:
      Found Banned Dependency: org.yaml:snakeyaml:jar:1.24
      Use 'mvn dependency:tree' to locate the source of the banned dependencies. 

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hailong wang hailong wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: