From 891aa91c8a32930f5b225b1268bd5d93f7460078 Mon Sep 17 00:00:00 2001 From: "mukesh.paliwal1@huawei.com" Date: Wed, 22 Jul 2020 14:11:49 +0530 Subject: Mapper (VESadapter) java upgrade Issue-ID: DCAEGEN2-2283 Signed-off-by: mukesh.paliwal1@huawei.com Change-Id: Ib65f50299dbc86521db99b06739f6ce850b3a1e2 --- UniversalVesAdapter/pom.xml | 869 ++++++++-------- .../adapter/UniversalEventAdapterTest.java | 3 + pom.xml | 1039 +++++++------------- version.properties | 4 +- 4 files changed, 779 insertions(+), 1136 deletions(-) diff --git a/UniversalVesAdapter/pom.xml b/UniversalVesAdapter/pom.xml index a0e120d..31039bf 100644 --- a/UniversalVesAdapter/pom.xml +++ b/UniversalVesAdapter/pom.xml @@ -1,439 +1,432 @@ - - - - - 4.0.0 - - org.onap.dcaegen2.services.mapper.vesadapter - UniversalVesAdapter - 1.0.1-SNAPSHOT - - - - org.onap.dcaegen2.services.mapper - mapper - 1.0.1-SNAPSHOT - - - - - - UTF-8 - UTF-8 - 8 - onap/org.onap.dcaegen2.services.mapper.vesadapter.universalvesadaptor - - - false - - - https://nexus.onap.org - content/repositories/snapshots/ - content/repositories/releases/ - - content/sites/site/org/onap/dcaegen2/services/mapper/${project.artifactId}/${project.version} - - yyyyMMdd'T'HHmmss - - - 1.1.6 - - - - - - junit - junit - 4.12 - test - - - org.mockito - mockito-core - 2.0.5-beta - test - - - - org.powermock - powermock-api-mockito - 1.6.2 - test - - - org.powermock - powermock-module-junit4 - 1.6.2 - test - - - org.javassist - javassist - 3.18.2-GA - - - com.googlecode.json-simple - json-simple - 1.1.1 - - - com.google.guava - guava - - - commons-configuration - commons-configuration - 1.10 - - - com.google.code.gson - gson - 2.8.5 - - - com.google.inject - guice - 4.2.0 - - - org.apache.commons - commons-lang3 - 3.5 - - - com.google.inject.extensions - guice-assistedinject - 4.2.0 - - - org.milyn - milyn-smooks-all - 1.7.0 - - - javax.servlet - servlet-api - - - ognl - ognl - - - javax.jms - jms - - - - - ognl - ognl - 3.1.12 - - - org.onap.dmaap.messagerouter.dmaapclient - dmaapClient - 1.1.3 - - - javax.jms - jms - - - - - - org.postgresql - postgresql - 42.2.5 - - - org.springframework - spring-jdbc - 5.1.3.RELEASE - - - org.springframework.boot - spring-boot-starter-web - 2.1.1.RELEASE - - - org.springframework.boot - spring-boot-starter-test - 2.1.1.RELEASE - test - - - org.springframework.data - spring-data-commons - 2.1.3.RELEASE - - - - org.slf4j - slf4j-api - 1.7.25 - - - org.codehaus.groovy - groovy-all - 2.4.14 - - - com.jayway.jsonpath - json-path - 2.4.0 - test - - - com.fasterxml.jackson.core - jackson-databind - 2.9.7 - - - hsqldb - hsqldb - 1.8.0.10 - test - - - - xalan - xalan - 2.7.2 - - - - xerces - xercesImpl - 2.12.0 - - - - com.thoughtworks.xstream - xstream - 1.4.10 - - - - xml-apis - xml-apis - 1.4.01 - - - - org.apache.httpcomponents - httpclient - ${httpclient.version} - compile - - - org.apache.httpcomponents - httpmime - ${httpclient.version} - compile - - - - org.springframework.boot - spring-boot-configuration-processor - true - 2.1.1.RELEASE - - - - - - org.onap.dcaegen2.services.sdk.rest.services - cbs-client - ${sdk.version} - - - - - - - - - maven-assembly-plugin - 3.1.0 - - - com.spotify - docker-maven-plugin - 1.0.0 - - - - - - - - - - maven-assembly-plugin - - - src/assembly/dep.xml - - false - false - true - - - - make-assembly - package - - single - - - - - - com.spotify - docker-maven-plugin - 1.0.0 - - false - ${onap.nexus.dockerregistry.daily} - ${onap.nexus.dockerregistry.daily}/${docker.image.name} - - latest - ${project.version}-${maven.build.timestamp}Z - ${project.version} - - alpine:3.8 - - /etc/host.aliases - - /opt/app/VESAdapter - - - . - ${project.build.directory}/${project.artifactId}-${project.version} - - - - chmod +x bin/run.sh - - - - - - 8080 - 8443 - - bin/run.sh - - - - - - org.springframework.boot - spring-boot-maven-plugin - 2.1.1.RELEASE - - - - repackage - - - org.onap.universalvesadapter.Application - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 1.9.1 - - - add-source - generate-sources - - add-source - - - - src/gen/java - - - - - - - - - - - - - with-system-proxy - - - - com.spotify - docker-maven-plugin - - - ${env.http_proxy} - - - - - - - - - - - - spring-releases - https://repo.spring.io/libs-release - - - - - spring-releases - https://repo.spring.io/libs-release - - + + + + + 4.0.0 + + org.onap.dcaegen2.services.mapper.vesadapter + UniversalVesAdapter + 1.1.0-SNAPSHOT + + + + org.onap.dcaegen2.services.mapper + mapper + 1.1.0-SNAPSHOT + + + + + + UTF-8 + UTF-8 + 11 + onap/org.onap.dcaegen2.services.mapper.vesadapter.universalvesadaptor + + + false + + + https://nexus.onap.org + content/repositories/snapshots/ + content/repositories/releases/ + + content/sites/site/org/onap/dcaegen2/services/mapper/${project.artifactId}/${project.version} + + yyyyMMdd'T'HHmmss + + + 1.1.6 + + + + + + junit + junit + 4.12 + test + + + org.mockito + mockito-core + 2.0.5-beta + test + + + + org.powermock + powermock-api-mockito + 1.6.2 + test + + + org.powermock + powermock-module-junit4 + 1.6.2 + test + + + org.javassist + javassist + 3.18.2-GA + + + com.googlecode.json-simple + json-simple + 1.1.1 + + + com.google.guava + guava + + + commons-configuration + commons-configuration + 1.10 + + + com.google.code.gson + gson + 2.8.5 + + + com.google.inject + guice + 4.2.0 + + + org.apache.commons + commons-lang3 + 3.5 + + + com.google.inject.extensions + guice-assistedinject + 4.2.0 + + + org.milyn + milyn-smooks-all + 1.7.0 + + + javax.servlet + servlet-api + + + ognl + ognl + + + javax.jms + jms + + + + + ognl + ognl + 3.1.12 + + + org.onap.dmaap.messagerouter.dmaapclient + dmaapClient + 1.1.3 + + + javax.jms + jms + + + + + + org.postgresql + postgresql + 42.2.5 + + + org.springframework + spring-jdbc + 5.1.3.RELEASE + + + org.springframework.boot + spring-boot-starter-web + 2.1.1.RELEASE + + + org.springframework.boot + spring-boot-starter-test + 2.1.1.RELEASE + test + + + org.springframework.data + spring-data-commons + 2.1.3.RELEASE + + + + org.slf4j + slf4j-api + 1.7.25 + + + org.codehaus.groovy + groovy-all + 2.4.14 + + + com.jayway.jsonpath + json-path + 2.4.0 + test + + + com.fasterxml.jackson.core + jackson-databind + 2.9.7 + + + hsqldb + hsqldb + 1.8.0.10 + test + + + + xalan + xalan + 2.7.2 + + + + xerces + xercesImpl + 2.12.0 + + + + com.thoughtworks.xstream + xstream + 1.4.10 + + + + xml-apis + xml-apis + 1.4.01 + + + + org.apache.httpcomponents + httpclient + ${httpclient.version} + compile + + + org.apache.httpcomponents + httpmime + ${httpclient.version} + compile + + + org.springframework.boot + spring-boot-configuration-processor + true + 2.1.1.RELEASE + + + + + + org.onap.dcaegen2.services.sdk.rest.services + cbs-client + ${sdk.version} + + + + + + + + + maven-assembly-plugin + 3.1.0 + + + com.spotify + docker-maven-plugin + 1.0.0 + + + + + + maven-assembly-plugin + + + src/assembly/dep.xml + + false + false + true + + + + make-assembly + package + + single + + + + + + com.spotify + docker-maven-plugin + 1.0.0 + + false + ${onap.nexus.dockerregistry.daily} + ${onap.nexus.dockerregistry.daily}/${docker.image.name} + + latest + ${project.version}-${maven.build.timestamp}Z + ${project.version} + + onap/integration-java11:7.0.0 + + /etc/host.aliases + + /opt/app/VESAdapter + + + . + ${project.build.directory}/${project.artifactId}-${project.version} + + + + chmod +x bin/run.sh + + + + + + 8080 + 8443 + + bin/run.sh + + + + + + org.springframework.boot + spring-boot-maven-plugin + 2.1.1.RELEASE + + + + repackage + + + org.onap.universalvesadapter.Application + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 1.9.1 + + + add-source + generate-sources + + add-source + + + + src/gen/java + + + + + + + + + + + + + with-system-proxy + + + + com.spotify + docker-maven-plugin + + + ${env.http_proxy} + + + + + + + + + + + + spring-releases + https://repo.spring.io/libs-release + + + + + spring-releases + https://repo.spring.io/libs-release + + \ No newline at end of file diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/adapter/UniversalEventAdapterTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/adapter/UniversalEventAdapterTest.java index 459047a..2b79fc7 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/adapter/UniversalEventAdapterTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/adapter/UniversalEventAdapterTest.java @@ -3,6 +3,7 @@ * ONAP : DCAE * ================================================================================ * Copyright 2018-2019 TechMahindra + * Copyright (C) 2020 Huawei Technologies Co., Ltd. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,6 +36,7 @@ import org.onap.universalvesadapter.exception.VesException; import org.onap.universalvesadapter.service.VESAdapterInitializer; import org.onap.universalvesadapter.utils.CollectorConfigPropertyRetrieval; import org.powermock.api.mockito.PowerMockito; +import org.powermock.core.classloader.annotations.PowerMockIgnore; import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.modules.junit4.PowerMockRunner; import org.slf4j.Logger; @@ -43,6 +45,7 @@ import org.springframework.boot.test.context.SpringBootTest; @RunWith(PowerMockRunner.class) @SpringBootTest(classes = Application.class) +@PowerMockIgnore("jdk.internal.reflect.*") public class UniversalEventAdapterTest { private static final Logger errorLogger = LoggerFactory.getLogger("errorLogger"); diff --git a/pom.xml b/pom.xml index e546663..e59f68d 100644 --- a/pom.xml +++ b/pom.xml @@ -1,696 +1,343 @@ - - - - 4.0.0 - - - org.onap.oparent - oparent - 2.0.0 - - - - org.onap.dcaegen2.services.mapper - mapper - 1.0.1-SNAPSHOT - pom - - dcaegen2-services-mapper - Universal VES mapper for DCAE Analytics Service - - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - - - - - - - UTF-8 - UTF-8 - ${project.basedir} - - - true - - 1.7.25 - 2.9.4 - - 0.16.0 - 2.2.4 - 13.0.1 - 3.0 - 1.0.9 - 2.0.1 - 3.0.0 - 1.16.10 - - 2.2.0 - 2.2.0 - 4.5.6 - 3.5 - - 1.0.0 - - - 4.12 - 2.2.0 - 1.4.0 - 2.5.7 - 1.2.5 - - - - 3.3 - - 2.19.1 - 2.5.4 - 1.7 - 2.10 - 3.0.2 - 3.5 - - 2.16 - 2.10.4 - 2.4 - 2.4 - 1.16.10.0 - 1.0-m5.1 - 2.2.3 - 3.5.1 - 2.5 - 2.7 - - - - 1.8 - 1.8 - **/*Test.java - false - **/*IT.java - true - - true - true - checkstyle.xml - suppressions.xml - false - https://nexus.onap.org - content/repositories/snapshots/ - content/repositories/releases/ - - content/sites/site/org/onap/dcaegen2/services/mapper/${project.artifactId}/${project.version} - - - ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml - - - - - - - - - - - - - - com.googlecode.json-simple - json-simple - 1.1 - - - - - org.apache.commons - commons-lang3 - ${commons.lang3.version} - - - - - - - - - - junit - junit - ${junit.version} - test - - - - org.mockito - mockito-core - ${mockito.version} - - - - com.jayway.jsonpath - json-path-assert - ${jayway.jsonpath.version} - test - - - com.spotify - docker-maven-plugin - ${docker.maven.version} - - - - - - - - - - - - ${project.basedir}/src/main/resources - - - ${project.build.directory}/git - - - - - - org.apache.maven.wagon - wagon-webdav-jackrabbit - 1.0-beta-7 - - - - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - ${compiler.plugin.version} - - ${compiler.target.version} - ${compiler.source.version} - - - - - - org.apache.maven.plugins - maven-source-plugin - ${source.plugin.version} - - true - - - - attach-sources - verify - - jar-no-fork - - - - - - - - - - - - org.apache.felix - maven-bundle-plugin - ${bundle.plugin.version} - true - - - *;inline=false;scope=compile - true - lib - - - - - Bundling mapper Jar - package - - bundle - - - - - - - - org.apache.maven.plugins - maven-antrun-plugin - ${autorun.plugin.version} - - - - - - - - - - - - - - - - - - org.apache.maven.plugins - maven-eclipse-plugin - ${eclipe.plugin.version} - - - - - - - - - - - org.apache.maven.plugins - maven-jar-plugin - ${jar.plugin.version} - - - - true - - - ${project.version} - - - - - - - org.apache.maven.plugins - maven-site-plugin - ${maven.site.plugin} - - - - - - - - - com.spotify - docker-maven-plugin - ${docker.maven.version} - - true - - - - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - - - org.apache.maven.plugins - maven-jar-plugin - - - - - - - org.apache.maven.plugins - maven-source-plugin - - - - - - - - - - - - - - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - - ${checkstyle.file.name} - ${checkstyle.suppression.file.name} - - - - - - - - - - - - doclint-java8-disable - - [1.8,) - - - - - - - - - - - - UniversalVesAdapter - - - + + + + 4.0.0 + + + org.onap.oparent + oparent + 2.0.0 + + + + org.onap.dcaegen2.services.mapper + mapper + 1.1.0-SNAPSHOT + pom + + dcaegen2-services-mapper + Universal VES mapper for DCAE Analytics Service + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + + + UTF-8 + UTF-8 + ${project.basedir} + + + true + + 1.7.25 + 2.9.4 + + 0.16.0 + 2.2.4 + 13.0.1 + 3.0 + 1.0.9 + 2.0.1 + 3.0.0 + 1.16.10 + + 2.2.0 + 2.2.0 + 4.5.6 + 3.5 + + 1.0.0 + + + 4.12 + 2.2.0 + 1.4.0 + 2.5.7 + 1.2.5 + + + + 3.3 + + 2.19.1 + 2.5.4 + 1.7 + 2.10 + 3.0.2 + 3.5 + + 2.16 + 2.10.4 + 2.4 + 2.4 + 1.16.10.0 + 1.0-m5.1 + 2.2.3 + 3.5.1 + 2.5 + 2.7 + + + + 11 + 11 + **/*Test.java + false + **/*IT.java + true + + true + true + checkstyle.xml + suppressions.xml + false + https://nexus.onap.org + content/repositories/snapshots/ + content/repositories/releases/ + + content/sites/site/org/onap/dcaegen2/services/mapper/${project.artifactId}/${project.version} + + + ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml + + + + + + + + + + com.googlecode.json-simple + json-simple + 1.1 + + + + + org.apache.commons + commons-lang3 + ${commons.lang3.version} + + + + + + junit + junit + ${junit.version} + test + + + + org.mockito + mockito-core + ${mockito.version} + + + + com.jayway.jsonpath + json-path-assert + ${jayway.jsonpath.version} + test + + + com.spotify + docker-maven-plugin + ${docker.maven.version} + + + + + + + + + + + + ${project.basedir}/src/main/resources + + + ${project.build.directory}/git + + + + + + org.apache.maven.wagon + wagon-webdav-jackrabbit + 1.0-beta-7 + + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${compiler.plugin.version} + + ${compiler.target.version} + ${compiler.source.version} + + + + + + org.apache.maven.plugins + maven-source-plugin + ${source.plugin.version} + + true + + + + attach-sources + verify + + jar-no-fork + + + + + + + + org.apache.felix + maven-bundle-plugin + ${bundle.plugin.version} + true + + + *;inline=false;scope=compile + true + lib + + + + + Bundling mapper Jar + package + + bundle + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + ${autorun.plugin.version} + + + + + org.apache.maven.plugins + maven-eclipse-plugin + ${eclipe.plugin.version} + + + + + org.apache.maven.plugins + maven-jar-plugin + ${jar.plugin.version} + + + + true + + + ${project.version} + + + + + + + org.apache.maven.plugins + maven-site-plugin + ${maven.site.plugin} + + + com.spotify + docker-maven-plugin + ${docker.maven.version} + + true + + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + + org.apache.maven.plugins + maven-jar-plugin + + + + org.apache.maven.plugins + maven-source-plugin + + + + + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + ${checkstyle.file.name} + ${checkstyle.suppression.file.name} + + + + + + + UniversalVesAdapter + + + diff --git a/version.properties b/version.properties index 3903250..73415a7 100644 --- a/version.properties +++ b/version.properties @@ -1,6 +1,6 @@ major=1 -minor=0 -patch=1 +minor=1 +patch=0 base_version=${major}.${minor}.${patch} release_version=${base_version} snapshot_version=${base_version}-SNAPSHOT -- cgit 1.2.3-korg