From 2ce68d3c8423d644056becc8ef1e3bb0df731c42 Mon Sep 17 00:00:00 2001 From: Piotr Bocheński Date: Fri, 8 Feb 2019 13:38:02 +0100 Subject: Add git info to PRH + cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id518d56373f6ccab9dd4195ad08b67589e0d9b4f Issue-ID: DCAEGEN2-1030 Signed-off-by: Piotr Bocheński --- prh-app-server/pom.xml | 52 ++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 14 deletions(-) (limited to 'prh-app-server/pom.xml') diff --git a/prh-app-server/pom.xml b/prh-app-server/pom.xml index f6ee2f79..5e4befbc 100644 --- a/prh-app-server/pom.xml +++ b/prh-app-server/pom.xml @@ -3,7 +3,7 @@ ~ ============LICENSE_START======================================================= ~ PNF-REGISTRATION-HANDLER ~ ================================================================================ - ~ Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved. + ~ Copyright (C) 2018-2019 NOKIA Intellectual Property. All rights reserved. ~ ================================================================================ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. @@ -17,10 +17,10 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. ~ ============LICENSE_END========================================================= - --> +--> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 @@ -51,14 +51,37 @@ + + pl.project13.maven + git-commit-id-plugin + + ${maven.build.timestamp.format} + true + json + ${project.build.outputDirectory}/git_info.json + + + + get-git-info + + revision + + + + org.apache.maven.plugins maven-jar-plugin - 3.0.2 + + true + ./${dependency.dir.name}/ + false + ${prh.main.class} + true + - ${prh.main.class} ${maven.build.timestamp} @@ -91,23 +114,23 @@ latest - openjdk:8-jre-alpine - - 8100 - 8433 - - ["java", "-cp", "${docker.artifact.dir}/${dependency.dir.name}/*:${docker.artifact.dir}/${project.build.finalName}.jar", "${prh.main.class}"] + openjdk:${java.version}-jre-alpine + ${docker.artifact.dir} ${dependency.dir.location} - ${docker.artifact.dir}/${dependency.dir.name} + ${dependency.dir.name} ${project.build.directory} ${project.build.finalName}.jar - ${docker.artifact.dir} + + 8100 + 8433 + + ["java", "-jar", "${project.build.finalName}.jar"] @@ -157,6 +180,7 @@ + org.onap.dcaegen2.services.prh -- cgit 1.2.3-korg