Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
1.12.0
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
- is duplicated by
-
FLINK-19459 flink-dist won't build locally with newer (3.3+) maven versions
- Closed
- links to