diff options
author | Kanagaraj Manickam <kanagaraj.manickam@huawei.com> | 2020-08-24 10:31:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-08-24 10:31:03 +0000 |
commit | 1b847c8df05fe0e8be28e115a6953c0b18eaf053 (patch) | |
tree | 029d52f8e4b6eb7d40a52d974b9c7ed086092605 /vnfmarket-be | |
parent | 89325b0b6a011787637f76bf3b423fed905088ec (diff) | |
parent | 0aa56e61319ae87adadd95e419f7cea12474b2ed (diff) |
Merge "Migrate from java 8 to java 11"
Diffstat (limited to 'vnfmarket-be')
-rw-r--r-- | vnfmarket-be/deployment/docker/docker-refrepo/pom.xml | 14 | ||||
-rw-r--r-- | vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/Dockerfile | 9 | ||||
-rw-r--r-- | vnfmarket-be/pom.xml | 15 | ||||
-rw-r--r-- | vnfmarket-be/vnf-sdk-marketplace/pom.xml | 15 |
4 files changed, 39 insertions, 14 deletions
diff --git a/vnfmarket-be/deployment/docker/docker-refrepo/pom.xml b/vnfmarket-be/deployment/docker/docker-refrepo/pom.xml index 23274d4d..745b6fa0 100644 --- a/vnfmarket-be/deployment/docker/docker-refrepo/pom.xml +++ b/vnfmarket-be/deployment/docker/docker-refrepo/pom.xml @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2017 Huawei Technologies Co., Ltd. + Copyright 2020 Nokia Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -68,7 +69,18 @@ </resource> </resources> </configuration> - + <dependencies> + <dependency> + <groupId>javax.activation</groupId> + <artifactId>javax.activation-api</artifactId> + <version>${javax.activation-api.version}</version> + </dependency> + <dependency> + <groupId>javax.xml.bind</groupId> + <artifactId>jaxb-api</artifactId> + <version>${jaxb-api.version}</version> + </dependency> + </dependencies> <executions> <execution> <id>build-image</id> diff --git a/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/Dockerfile b/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/Dockerfile index 65812d67..f2388977 100644 --- a/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/Dockerfile +++ b/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/Dockerfile @@ -1,4 +1,5 @@ # Copyright 2020 Huawei Technologies Co., Ltd. +# Copyright 2020 Nokia # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +30,7 @@ WORKDIR /service -ENV JAVA_VERSION_MAJOR=8 \ +ENV JAVA_VERSION_MAJOR=11 \ JAVA_VERSION_MINOR=111 \ JAVA_HOME=/usr/lib/jvm/default-jvm \ PATH=${PATH}:/usr/lib/jvm/default-jvm/bin/ @@ -44,11 +45,11 @@ RUN add-apt-repository ppa:openjdk-r/ppa -y && \ # upgrade OS apt-get -y dist-upgrade && \ # Make info file about this build - printf "Build of java:openjdk-8-jre-headless, date: %s\n" `date -u +"%Y-%m-%dT%H:%M:%SZ"` > /service/java && \ + printf "Build of java:openjdk-11-jre-headless, date: %s\n" `date -u +"%Y-%m-%dT%H:%M:%SZ"` > /service/java && \ # install application - apt-get install -y --no-install-recommends openjdk-8-jre-headless && \ + apt-get install -y --no-install-recommends openjdk-11-jre-headless && \ # fix default setting - ln -s java-8-openjdk-amd64 /usr/lib/jvm/default-jvm && \ + ln -s java-11-openjdk-amd64 /usr/lib/jvm/default-jvm && \ # remove apt cache from image apt-get clean all diff --git a/vnfmarket-be/pom.xml b/vnfmarket-be/pom.xml index 240a9d6c..47b1cb3a 100644 --- a/vnfmarket-be/pom.xml +++ b/vnfmarket-be/pom.xml @@ -1,13 +1,14 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2016-2018 Huawei Technologies Co., Ltd. - + Copyright 2020 Nokia + 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 - + http://www.apache.org/licenses/LICENSE-2.0 - + Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -29,7 +30,13 @@ <scm> <tag>HEAD</tag> </scm> - <modules> + + <properties> + <javax.activation-api.version>1.2.0</javax.activation-api.version> + <jaxb-api.version>2.3.1</jaxb-api.version> + </properties> + + <modules> <module>vnf-sdk-marketplace</module> <module>deployment</module> </modules> diff --git a/vnfmarket-be/vnf-sdk-marketplace/pom.xml b/vnfmarket-be/vnf-sdk-marketplace/pom.xml index 5d68fd40..85376cfa 100644 --- a/vnfmarket-be/vnf-sdk-marketplace/pom.xml +++ b/vnfmarket-be/vnf-sdk-marketplace/pom.xml @@ -32,11 +32,6 @@ <dependencies> - <dependency> - <groupId>javax.xml.bind</groupId> - <artifactId>jaxb-api</artifactId> - <version>2.3.1</version> - </dependency> <!-- oclip --> <dependency> <groupId>org.onap.cli</groupId> @@ -209,6 +204,16 @@ due to Security Issues:- CVE-2019-10241,CVE-2019-10247,CVE-2019-10246 <artifactId>mybatis</artifactId> <version>3.2.7</version> </dependency> + <dependency> + <groupId>javax.activation</groupId> + <artifactId>javax.activation-api</artifactId> + <version>${javax.activation-api.version}</version> + </dependency> + <dependency> + <groupId>javax.xml.bind</groupId> + <artifactId>jaxb-api</artifactId> + <version>${jaxb-api.version}</version> + </dependency> <!-- UT --> <dependency> <groupId>junit</groupId> |