From 92ae97d44c856b544ba0225b099efe10dc40016d Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 18 Mar 2021 12:35:58 +0530 Subject: [PATCH] dependencies are updated to their latest/nearest versions --- .../model/documentservice/InvoiceBuilder.java | 5 ++-- .../web/util/RequestExecutionHelper.java | 4 ++-- pom.xml | 24 +++++++++---------- 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/espm-cloud-web/src/main/java/com/sap/espm/model/documentservice/InvoiceBuilder.java b/espm-cloud-web/src/main/java/com/sap/espm/model/documentservice/InvoiceBuilder.java index 6bd1f86..d4107ac 100644 --- a/espm-cloud-web/src/main/java/com/sap/espm/model/documentservice/InvoiceBuilder.java +++ b/espm-cloud-web/src/main/java/com/sap/espm/model/documentservice/InvoiceBuilder.java @@ -14,10 +14,9 @@ import org.apache.chemistry.opencmis.commons.PropertyIds; import org.apache.chemistry.opencmis.commons.data.ContentStream; import org.apache.chemistry.opencmis.commons.enums.VersioningState; -import org.apache.pdfbox.exceptions.COSVisitorException; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.pdmodel.PDPage; -import org.apache.pdfbox.pdmodel.edit.PDPageContentStream; +import org.apache.pdfbox.pdmodel.PDPageContentStream; import org.apache.pdfbox.pdmodel.font.PDFont; import org.apache.pdfbox.pdmodel.font.PDType1Font; import org.slf4j.Logger; @@ -141,7 +140,7 @@ public String generateInvoice(List salesOrderItemList) { out.close(); reportPath = cmisDocument.getId(); - } catch (IOException | COSVisitorException | CMISConnectionException e) { + } catch (IOException | CMISConnectionException e) { LOGGER.error(e.getMessage()); throw new ReportGenerationException(e); } diff --git a/espm-cloud-web/src/test/java/com/sap/espm/model/web/util/RequestExecutionHelper.java b/espm-cloud-web/src/test/java/com/sap/espm/model/web/util/RequestExecutionHelper.java index 25a88eb..993e447 100644 --- a/espm-cloud-web/src/test/java/com/sap/espm/model/web/util/RequestExecutionHelper.java +++ b/espm-cloud-web/src/test/java/com/sap/espm/model/web/util/RequestExecutionHelper.java @@ -7,7 +7,7 @@ import java.net.ProtocolException; import java.net.URL; -import org.apache.geronimo.mail.util.Base64; +import org.apache.cxf.common.util.Base64Utility; import org.codehaus.jettison.json.JSONArray; import org.codehaus.jettison.json.JSONException; import org.codehaus.jettison.json.JSONObject; @@ -37,7 +37,7 @@ public class RequestExecutionHelper { private static final String user = "ret"; private static final String password = "123"; private static final String AUTHORIZATION = "Basic " - + new String(Base64.encode((user + ":" + password).getBytes())); + + new String(Base64Utility.encode((user + ":" + password).getBytes())); /** * Get JSONArray from a JSON response diff --git a/pom.xml b/pom.xml index 4d266ed..daf25f7 100644 --- a/pom.xml +++ b/pom.xml @@ -53,7 +53,7 @@ localhost --http-proxy-host proxy --http-proxy-port 8080 --https-proxy-host proxy --https-proxy-port 8080 -Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy -Dhttps.proxyPort=8080 - 3.20.3.1 + 3.125.9 ${project.build.directory}/install ${basedir}/../destinations @@ -62,18 +62,18 @@ 8080 8443 8009 - 2.0.7 - 1.7.12 - 4.13.1 - 10.9.1.0 - 2.6.4 - 3.0.1 - 4.5.2 - 4.4.5 - 2.7.18 + 2.0.11 + 1.7.30 + 4.13.2 + 10.14.2.0 + 2.7.8 + 4.0.1 + 4.5.13 + 4.4.14 + 3.2.14 1.0.0 - 1.8.11 - 1.3.2 + 2.0.22 + 1.4.1 3.6.0 3.0.0 3.0.0