From: James Forsyth Date: Thu, 15 Aug 2019 13:43:24 +0000 (+0000) Subject: Merge "Updated champ-lib to use the correct logger" X-Git-Tag: 1.6.0~5 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=e9f19eaf902ff2c1cdc02a5f90aa06fd582848a6;hp=8524acbca18540f589dcb9d8335e3cc67fb6e059;p=aai%2Fchamp.git Merge "Updated champ-lib to use the correct logger" --- diff --git a/champ-lib/champ-core/pom.xml b/champ-lib/champ-core/pom.xml index f352c81..df143c4 100644 --- a/champ-lib/champ-core/pom.xml +++ b/champ-lib/champ-core/pom.xml @@ -27,7 +27,7 @@ limitations under the License. org.onap.aai.champ champ-lib - 1.4.1-SNAPSHOT + 1.5.0-SNAPSHOT org.onap.aai.champ.champ-lib @@ -168,9 +168,6 @@ limitations under the License. org.apache.maven.plugins maven-deploy-plugin - - true - com.mycila diff --git a/champ-lib/champ-janus/pom.xml b/champ-lib/champ-janus/pom.xml index d9966cf..02b375c 100644 --- a/champ-lib/champ-janus/pom.xml +++ b/champ-lib/champ-janus/pom.xml @@ -27,7 +27,7 @@ limitations under the License. org.onap.aai.champ champ-lib - 1.4.1-SNAPSHOT + 1.5.0-SNAPSHOT org.onap.aai.champ.champ-lib @@ -145,9 +145,6 @@ limitations under the License. org.apache.maven.plugins maven-deploy-plugin - - true - com.mycila diff --git a/champ-lib/champ-titan/pom.xml b/champ-lib/champ-titan/pom.xml index 40e1281..de1426a 100644 --- a/champ-lib/champ-titan/pom.xml +++ b/champ-lib/champ-titan/pom.xml @@ -26,7 +26,7 @@ limitations under the License. org.onap.aai.champ champ-lib - 1.4.1-SNAPSHOT + 1.5.0-SNAPSHOT org.onap.aai.champ.champ-lib @@ -128,9 +128,6 @@ limitations under the License. org.apache.maven.plugins maven-deploy-plugin - - true - com.mycila diff --git a/champ-lib/pom.xml b/champ-lib/pom.xml index 41085ff..815928f 100644 --- a/champ-lib/pom.xml +++ b/champ-lib/pom.xml @@ -25,7 +25,7 @@ limitations under the License. org.onap.aai champ - 1.4.1-SNAPSHOT + 1.5.0-SNAPSHOT org.onap.aai.champ @@ -123,9 +123,6 @@ limitations under the License. org.apache.maven.plugins maven-deploy-plugin - - true - com.mycila diff --git a/champ-service-deps-janus/pom.xml b/champ-service-deps-janus/pom.xml index cd104f4..6407f06 100644 --- a/champ-service-deps-janus/pom.xml +++ b/champ-service-deps-janus/pom.xml @@ -25,7 +25,7 @@ limitations under the License. org.onap.aai champ - 1.4.1-SNAPSHOT + 1.5.0-SNAPSHOT org.onap.aai.champ @@ -330,9 +330,6 @@ limitations under the License. org.apache.maven.plugins maven-deploy-plugin - - true - diff --git a/champ-service-deps-titan/pom.xml b/champ-service-deps-titan/pom.xml index d43f95c..2b35a34 100644 --- a/champ-service-deps-titan/pom.xml +++ b/champ-service-deps-titan/pom.xml @@ -25,7 +25,7 @@ limitations under the License. org.onap.aai champ - 1.4.1-SNAPSHOT + 1.5.0-SNAPSHOT org.onap.aai.champ @@ -295,9 +295,6 @@ limitations under the License. org.apache.maven.plugins maven-deploy-plugin - - true - diff --git a/champ-service/pom.xml b/champ-service/pom.xml index 5311692..93126bd 100644 --- a/champ-service/pom.xml +++ b/champ-service/pom.xml @@ -26,7 +26,7 @@ limitations under the License. org.onap.aai champ - 1.4.1-SNAPSHOT + 1.5.0-SNAPSHOT org.onap.aai.champ @@ -344,37 +344,50 @@ limitations under the License. - - - com.spotify - docker-maven-plugin - 0.4.11 - - true - docker-hub - ${docker.push.registry}/onap/${docker.name} - ${docker.location} - - latest - - true - - - org.apache.maven.plugins maven-deploy-plugin - - - org.sonatype.plugins - nexus-staging-maven-plugin - - org.apache.maven.plugins maven-site-plugin + + + + docker + + + + com.spotify + docker-maven-plugin + 0.4.11 + + true + docker-hub + ${docker.push.registry}/onap/${docker.name} + ${docker.location} + + latest + + true + + + + default + package + + build + + + + + + + + + + diff --git a/champ-service/src/main/java/org/onap/champ/entity/ChampBulkPayload.java b/champ-service/src/main/java/org/onap/champ/entity/ChampBulkPayload.java index 9ee9349..aa09306 100644 --- a/champ-service/src/main/java/org/onap/champ/entity/ChampBulkPayload.java +++ b/champ-service/src/main/java/org/onap/champ/entity/ChampBulkPayload.java @@ -5,6 +5,8 @@ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. * Copyright © 2017-2018 Amdocs * ================================================================================ + * Modifications Copyright (C) 2019 IBM. + * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -30,10 +32,10 @@ import java.util.List; public class ChampBulkPayload { - public static String ADD_OP = "add"; - public static String UPDATE_OP = "modify"; - public static String DELETE_OP = "delete"; - public static String PATCH_OP = "patch"; + public static final String ADD_OP = "add"; + public static final String UPDATE_OP = "modify"; + public static final String DELETE_OP = "delete"; + public static final String PATCH_OP = "patch"; private List edgeDeleteOps = new ArrayList(); private List vertexDeleteOps = new ArrayList(); diff --git a/champ-service/src/main/java/org/onap/champ/service/ChampTransactionCache.java b/champ-service/src/main/java/org/onap/champ/service/ChampTransactionCache.java index 9dc7233..e9a4e00 100644 --- a/champ-service/src/main/java/org/onap/champ/service/ChampTransactionCache.java +++ b/champ-service/src/main/java/org/onap/champ/service/ChampTransactionCache.java @@ -5,6 +5,8 @@ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. * Copyright © 2017-2018 Amdocs * =================================================================== + * Modifications Copyright (C) 2019 IBM. + * =================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -60,8 +62,7 @@ public class ChampTransactionCache { graphImpl.rollbackTransaction((ChampTransaction) notification.getValue()); logger.info(ChampMsgs.CHAMP_TX_CACHE, "Transaction rolledback successfully :" + notification.getKey()); } catch (ChampTransactionException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + logger.error(ChampMsgs.CHAMP_DATA_SERVICE_ERROR, e, "Transaction rolledback failed :"); } } } diff --git a/champ-service/src/main/java/org/onap/champ/util/ChampProperties.java b/champ-service/src/main/java/org/onap/champ/util/ChampProperties.java index 74b761e..1aeb5cf 100644 --- a/champ-service/src/main/java/org/onap/champ/util/ChampProperties.java +++ b/champ-service/src/main/java/org/onap/champ/util/ChampProperties.java @@ -5,6 +5,8 @@ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. * Copyright © 2017-2018 Amdocs * =================================================================== + * Modifications Copyright (C) 2019 IBM. + * =================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -25,8 +27,13 @@ import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.Properties; +import org.onap.aai.cl.api.Logger; +import org.onap.aai.cl.eelf.LoggerFactory; +import org.onap.champ.service.logging.ChampMsgs; public class ChampProperties { + + private static Logger logger = LoggerFactory.getInstance().getLogger(ChampProperties.class.getName()); private static Properties properties; @@ -37,7 +44,7 @@ public class ChampProperties { ) { properties.load(fileInputStream); } catch (IOException e) { - e.printStackTrace(); + logger.error(ChampMsgs.CHAMP_DATA_SERVICE_ERROR, "Error while loading properties ", e.getMessage()); Runtime.getRuntime().halt(1); } } @@ -57,7 +64,7 @@ public class ChampProperties { ) { properties.store(fileOut, "Added property: " + key); } catch (Exception e) { - e.printStackTrace(); + logger.error(ChampMsgs.CHAMP_DATA_SERVICE_ERROR, "Error while setting properties ", e.getMessage()); } } diff --git a/pom.xml b/pom.xml index ed2637e..012212e 100755 --- a/pom.xml +++ b/pom.xml @@ -25,18 +25,18 @@ limitations under the License. org.onap.oparent oparent - 1.2.0 + 2.0.0 org.onap.aai champ aai-champ pom - 1.4.1-SNAPSHOT + 1.5.0-SNAPSHOT https://nexus.onap.org - 1.4.0 + 1.5.0 0.57 @@ -55,9 +55,6 @@ limitations under the License. org.apache.maven.plugins maven-deploy-plugin - - true - org.jacoco diff --git a/version.properties b/version.properties index 66827fd..b11eaff 100644 --- a/version.properties +++ b/version.properties @@ -4,7 +4,7 @@ # because they are used in Jenkins, whose plug-in doesn't support major_version=1 -minor_version=4 +minor_version=5 patch_version=0 base_version=${major_version}.${minor_version}.${patch_version}