我目前使用 mvn 包在 EC2 实例上下载并安装了 AWS sdk,一切似乎都安装正确。当我尝试运行 DynamoDB 相同时,它失败了:
AmazonDynamoDBSample.java:18: error: package com.amazonaws does not exist
import com.amazonaws.AmazonClientException;
^
AmazonDynamoDBSample.java:19: error: package com.amazonaws does not exist
import com.amazonaws.AmazonServiceException;
^
AmazonDynamoDBSample.java:20: error: package com.amazonaws.auth does not exist
import com.amazonaws.auth.ClasspathPropertiesFileCredentialsProvider;
^
好像 AWS sdk 没有正确安装。有什么帮助吗?