IntelliJ - 无法从链中的任何提供程序加载AWS凭据

时间:2016-04-05 18:11:33

标签: intellij-idea sbt

尝试将SBT项目导入IntelliJ IDEA 15 CE时,我遇到了这个奇怪的问题。

邮件只是Unable to load AWS Credentials from any provider in the chain

我尝试将AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEY作为我的会话的环境变量公开,并且我确信我设置的值是正确的。我也试过创建一个~/.aws/credentials文件,但这两个文件都没有对修复此错误做任何事情。我认为这是一个IntelliJ错误,因为我可以使用sbt在我的控制台中运行这个项目就好了。

这是我sbt.last.log的摘录。这不是很有帮助。

[error]     several problems occurred while resolving dependency: org.ow2#ow2;1.3 {}:
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]
[error]     several problems occurred while resolving dependency: org.ow2.asm#asm-parent;4.1 {}:
[error]     several problems occurred while resolving dependency: org.ow2#ow2;1.3 {}:
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]
[error]     several problems occurred while resolving dependency: org.ow2#ow2;1.3 {}:
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]
[error]     several problems occurred while resolving dependency: org.ow2#ow2;1.3 {}:
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error] Total time: 596 s, completed Apr 5, 2016 10:59:14 AM

我该如何解决这个问题?

2 个答案:

答案 0 :(得分:3)

我能够让它工作的唯一方法是使用~/.aws/credential文件(我使用最新的IntelliJ CE)。

~/.aws/credential添加内容

[default]
aws_access_key_id={NO_QUOTES_KEY}
aws_secret_access_key={NO_QUOTES_SECRET_KEY}

[]内的个人资料名称必须为默认。它不适用于任何其他个人资料名称。

答案 1 :(得分:1)

我最终只是跑步

sbt compile

或(激活器是SBT的超集)

activator compile

从命令行解决(并下载)所有依赖项,然后在IntelliJ中打开它。

希望这也适合你。