You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "hailong wang (Jira)" <ji...@apache.org> on 2020/09/29 12:20:00 UTC

[jira] [Created] (FLINK-19455) Module 'flink-sql-connector-hive-2.3.6' build fail by maven-enforcer-plugin

hailong wang created FLINK-19455:
------------------------------------

             Summary: Module 'flink-sql-connector-hive-2.3.6' build fail by maven-enforcer-plugin
                 Key: FLINK-19455
                 URL: https://issues.apache.org/jira/browse/FLINK-19455
             Project: Flink
          Issue Type: Improvement
          Components: Connectors / Hive
    Affects Versions: 1.11.0
            Reporter: hailong wang
             Fix For: 1.12.0, 1.11.2


I run command 'mvn clean package' in flink-sql-connector-hive-2.3.6, and it failed,
{code:java}
 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.
{code}
For root pom has a root as follow:
{code:java}
bannedDependencies>
   <excludes combine.children="append">
      <exclude>*:*_2.12</exclude>
      <exclude>*:*_2.10</exclude>
   </excludes>
</bannedDependencies>
{code}
As for kafka_2.10 dependency is useless, So we can exclude it as follow:
{code:java}
<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>{code}
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)