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

[jira] [Updated] (FLINK-19455) Module 'flink-sql-connector-hive-2.3.6', 'flink-docs' and 'flnk-dist'build fail by maven-enforcer-plugin

     [ https://issues.apache.org/jira/browse/FLINK-19455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

hailong wang updated FLINK-19455:
---------------------------------
    Affects Version/s:     (was: 1.11.0)
                       1.12.0

> Module 'flink-sql-connector-hive-2.3.6', 'flink-docs' and 'flnk-dist'build fail by maven-enforcer-plugin
> --------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-19455
>                 URL: https://issues.apache.org/jira/browse/FLINK-19455
>             Project: Flink
>          Issue Type: Bug
>          Components: Connectors / Hive
>    Affects Versions: 1.12.0
>            Reporter: hailong wang
>            Priority: Major
>             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 rule 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}
> It also failed in flink-docs and flink-disk module:
> {code:java}
>  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. {code}
>  



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