From 204fa286a5812275ecd629ff69fd03eb53ff6d78 Mon Sep 17 00:00:00 2001 From: Jimmy Forsyth Date: Mon, 9 Sep 2019 16:06:34 -0400 Subject: [PATCH] Fix elalto docker build Issue-ID: AAI-2579 Signed-off-by: Jimmy Forsyth Change-Id: I0da2d9836d6f840a9bf183837613c88e9281ef7e --- champ-service/pom.xml | 92 +++++++++++++++++++++------------------------------ 1 file changed, 37 insertions(+), 55 deletions(-) diff --git a/champ-service/pom.xml b/champ-service/pom.xml index 03469b4..fdac175 100644 --- a/champ-service/pom.xml +++ b/champ-service/pom.xml @@ -33,8 +33,6 @@ limitations under the License. champ-service - ${basedir}/target - champ https://nexus.onap.org org.onap.aai.logging-service 1.2.2 @@ -45,6 +43,18 @@ limitations under the License. 0.16 + + + champ + 0.28.0 + 1.0.0 + ${project.build.directory}/${project.artifactId}-build/ + + onap + alpine + 1.6.0 + + yyyyMMdd'T'HHmmss'Z' @@ -123,15 +133,14 @@ limitations under the License. 3.22.0-GA - org.springframework.boot spring-boot-starter-jersey - - org.springframework.boot - spring-boot-starter-tomcat - + + org.springframework.boot + spring-boot-starter-tomcat + @@ -153,9 +162,9 @@ limitations under the License. 2.6.2 - - com.google.guava - guava + + com.google.guava + guava @@ -279,44 +288,19 @@ limitations under the License. - org.apache.maven.plugins - maven-resources-plugin - 2.7 + maven-assembly-plugin + + + src/main/assembly/descriptor.xml + + - copy-docker-file + make-assembly package - copy-resources + single - - target - true - - - ${basedir}/src/main/docker - true - - **/* - - - - ${basedir}/src/main/bin/ - - - ../champ-service-deps-janus/target/ - - - ../champ-service-deps-titan/target/ - - - ${basedir} - - **/dynamic/**/* - - - - @@ -344,7 +328,6 @@ limitations under the License. - org.apache.maven.plugins maven-deploy-plugin @@ -354,9 +337,9 @@ limitations under the License. maven-site-plugin - + - + docker @@ -387,16 +370,16 @@ limitations under the License. - def userAaiBaseImage = session.userProperties['aai.base.image']; - def userAaiCommonVersion = session.userProperties['aai.base.image.version']; + def userAaiBaseImage = session.userProperties['aai.base.image'] + def userAaiCommonVersion = session.userProperties['aai.base.image.version'] if (userAaiCommonVersion != null) { - project.properties['aai.base.image.version'] = userAaiCommonVersion; + project.properties['aai.base.image.version'] = userAaiCommonVersion } if (userAaiBaseImage != null) { - project.properties['aai.base.image'] = userAaiBaseImage; + project.properties['aai.base.image'] = userAaiBaseImage } - log.info 'Base image flavour: ' + project.properties['aai.base.image']; - log.info 'Base image version: ' + project.properties['aai.base.image.version']; + log.info 'Base image flavour: ' + project.properties['aai.base.image'] + log.info 'Base image version: ' + project.properties['aai.base.image.version'] @@ -411,7 +394,7 @@ limitations under the License. 1.23 - ${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l + ${docker.push.registry}/${aai.docker.namespace}/${docker.image.name}:%l @ @@ -466,6 +449,5 @@ limitations under the License. - - + -- 2.16.6