我正在尝试使用aws sdk 2使用localstack实现s3
Caused by: java.lang.ClassNotFoundException: com.amazonaws.auth.AWSCredentials
Gradle
implementation "org.testcontainers:localstack:1.16.0"
implementation "org.testcontainers:testcontainers:1.16.0"
implementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
implementation 'com.amazonaws:aws-java-sdk-s3'*/
implementation group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.32'
implementation group: 'software.amazon.awssdk', name: 's3', version: '2.17.59'
通过将库替换为aws sdk的版本1,这个例外就消失了,谁能在同样的问题上提供帮助和建议?
我也在寻找解决方案。我可以解决这个问题的唯一方法是添加aw -core v1依赖,但这并不干净。