I am trying to pull down a maven project that uses AWS. I have an aws IAM user with a key and password. I ran aws configure and configured the ~/.aws/credentials file in the default account. However, when I run maven clean install, I get the following error:
Failed to execute goal on project project-name:
Could not resolve dependencies for project com.project:project-name:war:1.0:
Failed to collect dependencies at com.project:commons-java:jar:1.0.0:
Failed to read artifact descriptor for com.project:commons-java:jar:1.0.0:
Could not transfer artifact com.project:commons-java:pom:1.0.0
from/to project-maven-repo-releases (s3://project-maven-repo/releases):
Unable to load AWS credentials from any provider in the chain
Clearly, maven cannot load the dependancies from s3. I have confirmed that my IAM user has s3 permissions. And, even though s3 is "regionless", I have supplied the correct region to the IAM account. I also have tried exporting the AWS variables to no avail. Any idea what could be the problem?
Thanks!