[ https://issues.apache.org/jira/browse/FLINK-19455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
hailong wang updated FLINK-19455: --------------------------------- Fix Version/s: (was: 1.11.2) > 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 > > > 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)