Reputation: 35276
This code
BasicAWSCredentials credentials
= new BasicAWSCredentials(WasabiCredential.ACCESS_KEY, WasabiCredential.SECRET_KEY);
final AmazonS3 s3 = AmazonS3ClientBuilder
.standard()
.withCredentials(new AWSStaticCredentialsProvider(credentials))
.withEndpointConfiguration(new AwsClientBuilder.EndpointConfiguration("s3.wasabisys.com", "us-east-1"))
.build();
Throws:
Caused by: java.lang.NoClassDefFoundError: com/amazonaws/auth/BasicAWSCredentials
Given:
BasicAWSCredentials.class
under \com\amazonaws\auth
folderUpvotes: 0
Views: 644
Reputation: 61
Had the same problem. It turned out I had a scope incorrect, it was:
<scope>test</scope>
So of course it was failing anywhere except during tests. I removed it and it did help.
Upvotes: 1