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.
This commit is contained in:
Andreas Kohn 2014-11-10 15:53:24 +01:00
parent 65bda62388
commit dce47eb481
2 changed files with 10 additions and 13 deletions

19
pom.xml
View File

@ -96,20 +96,15 @@
<dependency> <dependency>
<groupId>com.amazonaws</groupId> <groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId> <artifactId>aws-java-sdk-ec2</artifactId>
<version>${amazonaws.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-s3</artifactId>
<version>${amazonaws.version}</version> <version>${amazonaws.version}</version>
<scope>compile</scope> <scope>compile</scope>
<exclusions>
<!-- jackson is optional -->
<exclusion>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
</exclusion>
<exclusion>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
<!-- We need to explicitly set the common codec version since aws-java-sdk pulls the wrong version --> <!-- We need to explicitly set the common codec version since aws-java-sdk pulls the wrong version -->

View File

@ -19,7 +19,9 @@
<useProjectArtifact>true</useProjectArtifact> <useProjectArtifact>true</useProjectArtifact>
<useTransitiveFiltering>true</useTransitiveFiltering> <useTransitiveFiltering>true</useTransitiveFiltering>
<includes> <includes>
<include>com.amazonaws:aws-java-sdk</include> <include>com.amazonaws:aws-java-sdk-core</include>
<include>com.amazonaws:aws-java-sdk-ec2</include>
<include>com.amazonaws:aws-java-sdk-s3</include>
<include>commons-codec:commons-codec</include> <include>commons-codec:commons-codec</include>
</includes> </includes>
</dependencySet> </dependencySet>