Flink:为什么 Hive 依赖项 flink-sql-connector-hive 在 Maven Central 上不可用?

Flink: Why is Hive dependency flink-sql-connector-hive not available on Maven Central?

根据Flink SQL Hive: Using bundled hive jar

The following tables list all available bundled hive jars. You can pick one to the /lib/ directory in Flink distribution.

  • flink-sql-connector-hive-1.2.2 (download link)
  • flink-sql-connector-hive-2.2.0 (download link) ...

但是,Maven 中心不提供这些依赖项。作为解决方法,我使用 user defined dependencies,但不推荐这样做:

the recommended way to add dependency is to use a bundled jar. Separate jars should be used only if bundled jars don’t meet your needs.

我想知道为什么 Maven Central 中没有 bundle jar?

后续:因为它们不能从 Maven Central 获得,我想知道如何将它们包含在 pom.xml 中以便 运行 mvn package,如果我不想使用用户定义的依赖项?

谢谢!

答案是,我错了。 flink-sql-connector-hive 确实存在于 maven central 中,参见 https://search.maven.org/artifact/org.apache.flink/flink-sql-connector-hive-2.2.0_2.11/1.12.0/jar.