2016-04-05 9 views
2

SBTプロジェクトをIntelliJ IDEA 15 CEにインポートしようとすると、この奇妙な問題が発生します。IntelliJ - チェーン内の任意のプロバイダからAWS資格情報を読み込むことができません

メッセージは単にUnable to load AWS Credentials from any provider in the chainです。

セッションの環境変数としてAWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYを公開しようとしましたが、私が設定している値が正しいことが分かりました。私も~/.aws/credentialsファイルを作成しようとしましたが、どちらもこのエラーを修正するために何もしていません。 sbtを使って私のコンソールでこのプロジェクトを実行できるので、これは特にIntelliJのエラーだと思います。

私の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 

これを修正するにはどうすればよいですか?

+0

更新:IntelliJ 2016 CEにアップデートしましたが、これと同じ問題がまだ発生しています。 – bioball

答えて

3

私はそれを働かせることができた唯一の方法は~/.aws/credentialファイルを使用していました(私は最新のIntelliJ CEを使用しています)。あなたの~/.aws/credentialアドオンインサイド

[]内部

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

プロファイル名がデフォルトなければなりません。他のプロファイル名では機能しませんでした。その後、開かれた解決(およびダウンロード)、コマンドラインから

+0

これは私にとってはうまくいかない... :( – bioball

1

私はちょうど

sbt compile 

または(SBTのスーパーセットであるアクティベーター)を実行してしまった

activator compile 

すべての依存関係、それはIntelliJでそれをアップ。

希望もあなたのために働く。

関連する問題