编译错误:“无法解析项目的依赖项” - Managed Service for Apache Flink

Amazon Managed Service for Apache Flink 之前称为 Amazon Kinesis Data Analytics for Apache Flink。

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

编译错误:“无法解析项目的依赖项”

要编译 Managed Service for Apache Flink示例应用程序,您必须先下载并编译 Apache Flink Kinesis 连接器,然后将其添加到本地 Maven 存储库中。如果尚未将连接器添加到存储库中,则会显示类似下面的编译错误:

Could not resolve dependencies for project your project name: Failure to find org.apache.flink:flink-connector-kinesis_2.11:jar:1.8.2 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

要解决此错误,必须下载连接器的 Apache Flink 源代码(版本为 1.8.2 https://flink.apache.org/downloads.html)。有关如何下载、编译和安装 Apache Flink 源代码的说明,请参阅将 Apache Flink Kinesis Streams 连接器与之前的 Apache Flink 版本一起使用