Skip to content

Commit dce47eb

Browse files
committed
Use only the S3 and EC2 parts of the AWS Java SDK
Note that jackson is not marked as optional in the SDK POM, and the SDK uses Jackson 2 now.
1 parent 65bda62 commit dce47eb

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

pom.xml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,15 @@
9696

9797
<dependency>
9898
<groupId>com.amazonaws</groupId>
99-
<artifactId>aws-java-sdk</artifactId>
99+
<artifactId>aws-java-sdk-ec2</artifactId>
100+
<version>${amazonaws.version}</version>
101+
<scope>compile</scope>
102+
</dependency>
103+
<dependency>
104+
<groupId>com.amazonaws</groupId>
105+
<artifactId>aws-java-sdk-s3</artifactId>
100106
<version>${amazonaws.version}</version>
101107
<scope>compile</scope>
102-
<exclusions>
103-
<!-- jackson is optional -->
104-
<exclusion>
105-
<groupId>org.codehaus.jackson</groupId>
106-
<artifactId>jackson-core-asl</artifactId>
107-
</exclusion>
108-
<exclusion>
109-
<groupId>org.codehaus.jackson</groupId>
110-
<artifactId>jackson-mapper-asl</artifactId>
111-
</exclusion>
112-
</exclusions>
113108
</dependency>
114109

115110
<!-- We need to explicitly set the common codec version since aws-java-sdk pulls the wrong version -->

src/main/assemblies/plugin.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
<useProjectArtifact>true</useProjectArtifact>
2020
<useTransitiveFiltering>true</useTransitiveFiltering>
2121
<includes>
22-
<include>com.amazonaws:aws-java-sdk</include>
22+
<include>com.amazonaws:aws-java-sdk-core</include>
23+
<include>com.amazonaws:aws-java-sdk-ec2</include>
24+
<include>com.amazonaws:aws-java-sdk-s3</include>
2325
<include>commons-codec:commons-codec</include>
2426
</includes>
2527
</dependencySet>

0 commit comments

Comments
 (0)