quarks
quarks

Reputation: 35276

Caused by: java.lang.NoClassDefFoundError: com/amazonaws/auth/BasicAWSCredentials

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:

Upvotes: 0

Views: 644

Answers (1)

ligett
ligett

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

Related Questions