Skip to content
Advertisement

Spring Boot Fails while maven test …jdk8 and aws-sdk-bom 1.11

This is my pom.xml

4.0.0 org.springframework.boot spring-boot-starter-parent 2.1.6.RELEASE com.dummy lattt 0.0.1-SNAPSHOT war lattt lattt

JavaScript

I have 2 junit test and these are failing repeatedly

1.Installed and Using jdk 8

2.But aws-sdk-bom runs with 1.11.618 and downloads&executes test with 1.11.618

3.And throws the error

JavaScript

Test file

JavaScript

How to execute the mvn test with errors

Authentication Provider ->Yes

Advertisement

Answer

Could not find artifact com.amazonaws:aws-java-sdk-bom:pom:2.15.4 in central

To address this POM issue, please refer to the AWS Spring BOOT example applications that are located in https://github.com/awsdocs/aws-doc-sdk-examples/tree/master/javav2/usecases.

They all work and use AWS SDK For Java Version 2. I have deployed every one of them to the Cloud by using Elastic BeanStalk. Furthermore, these Spring Boot example apps interact with different AWS services like DynamoDB, Amazon RDS, Amazon S3, Amazon SES, Amazon Rekognition, etc.

Once you are successful getting the apps to work using V2, then you can build some tests

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement