Spring Boot的aws-java sdk依赖问题

时间:2019-05-24 05:10:57

标签: spring-boot aws-java-sdk

当我在pom文件中添加aws-java skd的依赖项时,出现“无法从https://repo.maven.apache.org/maven2传输com.amazonaws:aws-java-sdk-swf-libraries:jar:1.11.22”错误。 下面是我要添加的依赖项。

<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
<version>1.11.558</version>

1 个答案:

答案 0 :(得分:0)

Github官方页面link;

Importing the BOM


<dependencyManagement>
<dependencies>
<dependency>
  <groupId>com.amazonaws</groupId>
  <artifactId>aws-java-sdk-bom</artifactId>
  <version>1.11.559</version>
  <type>pom</type>
  <scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

使用SDK Maven模块

<dependencies>
 <dependency>
  <groupId>com.amazonaws</groupId>
  <artifactId>aws-java-sdk-ec2</artifactId>
 </dependency>
 <dependency>
  <groupId>com.amazonaws</groupId>
  <artifactId>aws-java-sdk-s3</artifactId>
 </dependency>
 <dependency>
   <groupId>com.amazonaws</groupId>
   <artifactId>aws-java-sdk-dynamodb</artifactId>
 </dependency>
</dependencies>