From 77ddc148a62c972b383b1fbc055680d2666d363e Mon Sep 17 00:00:00 2001 From: Adam Bchouti Date: Thu, 17 Sep 2020 13:11:06 -0400 Subject: [PATCH 1/3] Allow to receive MessageS3Pointer and PayloadS3Pointer for compatibility with 1.x --- pom.xml | 2 +- .../com/amazon/sqs/javamessaging/AmazonSQSExtendedClient.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2ec00ac..a8af002 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.amazonaws amazon-sqs-java-extended-client-lib - 1.0.2 + 1.0.3 jar Amazon SQS Extended Client Library for Java An extension to the Amazon SQS client that enables sending and receiving messages up to 2GB via Amazon S3. diff --git a/src/main/java/com/amazon/sqs/javamessaging/AmazonSQSExtendedClient.java b/src/main/java/com/amazon/sqs/javamessaging/AmazonSQSExtendedClient.java index 8200d7b..7e30faf 100644 --- a/src/main/java/com/amazon/sqs/javamessaging/AmazonSQSExtendedClient.java +++ b/src/main/java/com/amazon/sqs/javamessaging/AmazonSQSExtendedClient.java @@ -359,6 +359,8 @@ public ReceiveMessageResult receiveMessage(ReceiveMessageRequest receiveMessageR if (largePayloadAttributeValue != null) { String messageBody = message.getBody(); + messageBody = messageBody.replace("software.amazon.payloadoffloading.PayloadS3Pointer", "com.amazon.sqs.javamessaging.MessageS3Pointer"); + // read the S3 pointer from the message body JSON string. MessageS3Pointer s3Pointer = readMessageS3PointerFromJSON(messageBody); From 44dc665cc0c4f1bf7a62c886d9a5085a9ba8bc7b Mon Sep 17 00:00:00 2001 From: Adam Bchouti Date: Thu, 17 Sep 2020 16:25:12 -0400 Subject: [PATCH 2/3] Update README version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ed36a4f..93260e9 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ For more information on using the amazon-sqs-java-extended-client-lib, see our g com.amazonaws amazon-sqs-java-extended-client-lib - 1.0.2 + 1.0.3 jar ``` From 1af7b1f87eea7115abc4d49d9254148f3465d445 Mon Sep 17 00:00:00 2001 From: Adam Bchouti Date: Tue, 6 Oct 2020 12:28:55 -0400 Subject: [PATCH 3/3] Update deploy profile --- pom.xml | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 90 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index a8af002..4b53f2b 100644 --- a/pom.xml +++ b/pom.xml @@ -73,12 +73,100 @@ maven-compiler-plugin 3.2 - 1.7 - 1.7 + 1.8 + 1.8 UTF-8 + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.9.1 + + + attach-javadocs + + jar + + + + -Xdoclint:none + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + ossrh + https://aws.oss.sonatype.org + true + + + + + + + publishing + + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + +