Rekognition 名称空间未在 Eclipse AWS 工具包中解析

Rekognition namespaces aren't resolved in Eclipse AWS toolkit

在 Amazon Rekognition 开发人员指南中有一个教程 "Create the AWS Toolkit for Eclipse Lambda Project"

它告诉我通过这样做来解决 Eclipse 中的命名空间问题:

 The Rekognition namespaces aren't resolved. To correct this:
• Pause your mouse over the underlined portion of the line import
com.amazonaws.services.rekognition.AmazonRekognition;.
• Choose Fix project set up... .
• Choose the latest version of the Amazon Rekognition archive.
• Choose OK to add the archive to the project 

但是我没有选择最新的 Amazon Rekognition 存档的选项。 No option to add archive

是否有其他方法加载此存档或强制安装此存档?

根据 AWS 支持代表的说法:

The AWS Rekognition SDK is configured in the pom.xml file which is managed by Maven. You should see something like this in your pom.xml



<dependency>
    <groupId>com.amazonaws</groupId>
    <artifactId>aws-java-sdk-rekognition</artifactId>
</dependency>


Maven will pull this package automatically for you.

我没有直接更改我的pom。我在 eclipse 中创建了一个新的 aws java 项目并下载了一堆示例。当我返回问题文件时,它能够看到 rekognition 存档作为一个选项。