You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-29Lines changed: 28 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -38,35 +38,6 @@ section of the developer guide.
38
38
39
39
The recommended way to use the AWS SDK for Java in your project is to consume it from Maven.
40
40
41
-
#### Whole SDK ####
42
-
43
-
You can import the whole SDK into your project (includes all services) as follows:
44
-
45
-
```xml
46
-
<dependency>
47
-
<groupId>software.amazon.awssdk</groupId>
48
-
<artifactId>aws-sdk-java</artifactId>
49
-
<version>2.7.5</version>
50
-
</dependency>
51
-
```
52
-
53
-
#### Individual Services ####
54
-
55
-
Alternatively you can add dependencies for the specific services you use only:
56
-
57
-
```xml
58
-
<dependency>
59
-
<groupId>software.amazon.awssdk</groupId>
60
-
<artifactId>ec2</artifactId>
61
-
<version>2.7.5</version>
62
-
</dependency>
63
-
<dependency>
64
-
<groupId>software.amazon.awssdk</groupId>
65
-
<artifactId>s3</artifactId>
66
-
<version>2.7.5</version>
67
-
</dependency>
68
-
```
69
-
70
41
#### Importing the BOM ####
71
42
72
43
To automatically manage module versions (currently all modules have the same version, but this may not always be the case) we recommend you use the [Bill of Materials][bom] import as follows:
@@ -103,6 +74,34 @@ Then individual models may omit the `version` from their dependency statement:
103
74
</dependency>
104
75
</dependencies>
105
76
```
77
+
#### Individual Services ####
78
+
79
+
Alternatively you can add dependencies for the specific services you use only:
80
+
81
+
```xml
82
+
<dependency>
83
+
<groupId>software.amazon.awssdk</groupId>
84
+
<artifactId>ec2</artifactId>
85
+
<version>2.7.5</version>
86
+
</dependency>
87
+
<dependency>
88
+
<groupId>software.amazon.awssdk</groupId>
89
+
<artifactId>s3</artifactId>
90
+
<version>2.7.5</version>
91
+
</dependency>
92
+
```
93
+
94
+
#### Whole SDK ####
95
+
96
+
You can import the whole SDK into your project (includes *ALL* services). Please note that it is recommended to only import the modules you need.
97
+
98
+
```xml
99
+
<dependency>
100
+
<groupId>software.amazon.awssdk</groupId>
101
+
<artifactId>aws-sdk-java</artifactId>
102
+
<version>2.7.5</version>
103
+
</dependency>
104
+
```
106
105
107
106
See the [Set up the AWS SDK for Java][docs-setup] section of the developer guide for more usage information.
0 commit comments